﻿#include "projHeader.h"

HANDLE  hRunMutex;                   // "Keep Running" mutex 
HANDLE  hScreenMutex;                // "Screen update" mutex
int     ThreadNr;                    // Number of threads started 
CONSOLE_SCREEN_BUFFER_INFO csbiInfo; // Console information 

bool train_thread_status = true;

mapElt** MAP;
mapElt** METRO;
traffic* trL;
human* people;
car* cars;

//////////////////////// Moldovich /////////////////////////////

	extern LPCWSTR RailsV = L"╫"; //вертикальные рельсы
	extern LPCWSTR RailsH = L"╪"; //горизонтальные рельсы
	extern LPCWSTR RailsX = L"\\";   //диагональные рельсы
	extern LPCWSTR LeftCorner = L"└";  //левый нижний угол
	extern LPCWSTR Space = L" ";
	extern LPCWSTR Scepka = L"209";
	extern LPCWSTR Povorot = L"╗";
	extern LPCWSTR RailsV1 = L"╫";
	extern LPCWSTR Vagon = L"█";
	extern LPCWSTR RailsX1 = L"\\";
	extern LPCWSTR RailsH1 = L"╪";
	extern LPCWSTR Povorot1 = L"╝";
	extern LPCWSTR Povorot2 = L"╔";
	extern LPCWSTR Povorot3 = L"╚";

	int k = 0;
	

	WORD MyAttribTrain = FOREGROUND_BLUE | BLUE_FONT | FOREGROUND_INTENSITY;
	WORD MyAttribRails = WHITE_FONT;
	WORD MyAttribRails1 = 15 + 0; //рельсы на чёрном фоне
	WORD MyAttribPlatform = AZURE_FONT;

	// Хендл консоли
	extern HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
//	extern HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);

void ClearScreen()
	{
	WORD MyAttrib0 = 0;
				
					for(int i = 0; i < 250; ++i)
					{
						SetConsoleTextAttribute(h,0);
						WriteChars(0,i, Space,MyAttrib0, 200);
					}
					
				}

void ShowChars()
{
	for(int i = 0; i < 256; i++)
	{
		k++;
		cout << "i-" << (char)"i";
		if(k = 9)
			cout << endl;
	}
}

void WriteChars(int x, int y, LPCWSTR Ch,WORD MyAttrib, int Len)
{
	COORD coord;
	coord.X = x;
	coord.Y = y;
	LPDWORD N = 0;
	
	for(int i = 0; i < Len; i++)
	{
		coord.X = x + i;
		WriteConsoleOutputCharacterW(h,(LPCWSTR)Ch,1,coord,N);
	}

	for(int i = 0; i < Len; i++)
	{
		coord.X = x + i;
		WriteConsoleOutputAttribute(h,&MyAttrib,1,coord,N);
	}
}

void GotoXY(int X, int Y)
{
    COORD coord = { X, Y };
    SetConsoleCursorPosition(hStdOut, coord);
}

void SetColor(ConsoleColor text, ConsoleColor background)
{
    SetConsoleTextAttribute(hStdOut, (WORD)((background << 4) | text));
}

void Draw_Subway()
	{
		SubWay Sub1; // создаём объект-1 класса SubWay
		//----------1ая ветка---------//

		for(int i = 0;i < 26; i++)
		{
			Sub1.ShowRailroad(30,i,(char)"V");
		}
		for(int i = 26;i < 73; i++)
		{
			Sub1.ShowRailroad(i + 4,i - 1,(char)"X");
		}

		WriteChars(82,72,RailsX,MyAttribRails1,1);
		WriteChars(81,73,Space,MyAttribRails,2);

		for(int i = 83; i  < 135; i++)
		{
			Sub1.ShowRailroad(i,67,(char)"H");
		}

		for(int i = 73;i < 230; i++)
		{
			Sub1.ShowRailroad(130,i,(char)"V");
		}

		//--углы первой ветки--//

		SetColor(LightGray,LightGray);
		for(int i = 68;i < 71; i++)
		{
			WriteChars(135,i,Space,MyAttribRails,7);
		}
		for(int i = 74;i < 76; i++)
		{
			WriteChars(76,i,Space,MyAttribRails,7);
		}
		for(int i = 72;i < 74; i++)
		{
			WriteChars(76,i,Space,MyAttribRails,5);
		}
		for(int i = 71;i < 73; i++)
		{
			WriteChars(138,i,Space,MyAttribRails,4);
		}

		//--углы второй ветки--//

		for(int i = 31;i < 34; i++)
		{
			WriteChars(152,i,Space,MyAttribRails,8);
		}
		for(int i = 28;i < 31; i++)
		{
			WriteChars(156,i,Space,MyAttribRails,4);
		}
			WriteChars(153,29,Povorot1,MyAttribRails1,1);
			WriteChars(152,29,RailsH,MyAttribRails1,1);
			WriteChars(154,30,Povorot1,MyAttribRails1,1);
			WriteChars(154,29,RailsV,MyAttribRails1,1);
			WriteChars(152,30,RailsH,MyAttribRails1	,2);

		for(int i = 26;i < 29; i++)
		{
			WriteChars(88,i,Space,MyAttribRails,8);
		}
		for(int i = 29;i < 32; i++)
		{
			WriteChars(88,i,Space,MyAttribRails,4);
		}
			WriteChars(94,30,Povorot2,MyAttribRails1,1); // "╔"
			WriteChars(95,30,RailsH,MyAttribRails1,1);
			WriteChars(93,30,RailsV,MyAttribRails1,1);
			WriteChars(93,29,Povorot2,MyAttribRails1,1); // "╔"
			WriteChars(94,29,RailsH,MyAttribRails1,2);
			for(int i = 96;i < 99; i++)
		{
			WriteChars(92,i,Space,MyAttribRails,8); 
		}
			for(int i = 93;i < 96; i++)
		{
			WriteChars(96,i,Space,MyAttribRails,4); 
		}
			WriteChars(93,94,Povorot1,MyAttribRails1,1);
			WriteChars(92,94,RailsH,MyAttribRails1,1);
			WriteChars(94,95,Povorot1,MyAttribRails1,1);
			WriteChars(94,94,RailsV,MyAttribRails1,1);
			WriteChars(92,95,RailsH,MyAttribRails1,2);

			WriteChars(135,71,RailsH,MyAttribRails1,1);

		for(int i = 91;i < 96; i++)
		{
			WriteChars(20,i,Space,MyAttribRails,4);
		}
		for(int i = 91;i < 94; i++)
		{
			WriteChars(23,i,Space,MyAttribRails,5);
		}

		WriteChars(25,94,Povorot2,MyAttribRails1,1);
		WriteChars(26,94,RailsH,MyAttribRails1,2);
		WriteChars(25,95,RailsV,MyAttribRails1,1);
		WriteChars(26,95,Povorot2,MyAttribRails1,1);
		WriteChars(27,95,RailsH,MyAttribRails1,1);

		for(int i = 128;i < 133; i++)
		{
			WriteChars(20,i,Space,MyAttribRails,4);
		}
		for(int i = 130;i < 133; i++)
		{
			WriteChars(24,i,Space,MyAttribRails,4);
		}
		WriteChars(26,128,Povorot3,MyAttribRails1,1); //"╚"
		WriteChars(27,128,RailsH,MyAttribRails1,1);
		WriteChars(25,129,Povorot3,MyAttribRails1,1); //"╚"
		WriteChars(25,128,RailsV,MyAttribRails1,1);
		WriteChars(26,129,RailsH,MyAttribRails1,2);

		for(int i = 125;i < 128; i++)
		{
			WriteChars(65,i,Space,MyAttribRails,8);
		}
		for(int i = 127;i < 130; i++)
		{
			WriteChars(69,i,Space,MyAttribRails,4);
		}
		WriteChars(67,128,Povorot,MyAttribRails1,1);
		WriteChars(67,129,RailsV,MyAttribRails1,1);
		WriteChars(65,128,RailsH,MyAttribRails1,2);
		WriteChars(66,129,Povorot,MyAttribRails1,1);
		WriteChars(65,129,RailsH,MyAttribRails1,1);

		for(int i = 190;i < 193; i++)
		{
			WriteChars(65,i,Space,MyAttribRails,8);
		}
		for(int i = 190;i > 187; i--)
		{
			WriteChars(69,i,Space,MyAttribRails,4);
		}
		WriteChars(67,189,Povorot1,MyAttribRails1,1);
		WriteChars(65,189,RailsH,MyAttribRails1,2);
		WriteChars(67,188,RailsV,MyAttribRails1,1);
		WriteChars(66,188,Povorot1,MyAttribRails1,1);
		WriteChars(65,188,RailsH,MyAttribRails1,1);

		for(int i = 185;i < 190; i++)
		{
			WriteChars(20,i,Space,MyAttribRails,4);
		}
		for(int i = 185;i < 188; i++)
		{
			WriteChars(23,i,Space,MyAttribRails,5);
		}
		WriteChars(25,189,RailsV,MyAttribRails1,1);
		WriteChars(25,188,Povorot2,MyAttribRails1,1);
		WriteChars(26,188,RailsH,MyAttribRails1,2);
		WriteChars(26,189,Povorot2,MyAttribRails1,1);
		WriteChars(27,189,RailsH,MyAttribRails1,1);

		//----------2ая ветка---------//

		for(int i = 239;i > 189; i--)
		{
		Sub1.ShowRailroad(20,i,(char)"V");
		}

		for(int i = 28; i  < 65; i++)
		{
			Sub1.ShowRailroad(i,184,(char)"H");
		}

		for(int i = 187;i > 129; i--)
		{
		Sub1.ShowRailroad(61,i,(char)"V");
		}

		for(int i = 28; i  < 65; i++)
		{
			Sub1.ShowRailroad(i,124,(char)"H");
		}

		for(int i = 127;i > 95; i--)
		{
		Sub1.ShowRailroad(20,i,(char)"V");
		}

		for(int i = 28; i  < 92; i++)
		{
			Sub1.ShowRailroad(i,90,(char)"H");
		}

		for(int i = 93;i > 83; i--)
		{
		Sub1.ShowRailroad(88,i,(char)"V");
		}

		for(int i = 59;i > 30; i--)
		{
		Sub1.ShowRailroad(88,i,(char)"V");
		}

		for(int i = 96; i  < 152; i++)
		{
			Sub1.ShowRailroad(i,25,(char)"H");
		}

		for(int i = 28;i > 10; i--)
		{
		Sub1.ShowRailroad(148,i,(char)"V");
		}


		//----------Платформы--------- 1ая Ветка//
		GotoXY(42,4);
		SetColor(Black,LightCyan);
		cout <<"\"North\"  Station";
		Sub1.ShowPlatform(18, 16, 42, 4);
		GotoXY(14,4);
		SetColor(Black,LightCyan);
		cout <<"\"North\"  Station";
		Sub1.ShowPlatform(18, 16, 14, 4);
		GotoXY(145,0);
		SetColor(Black,LightCyan);
		cout <<"\"East\"  Station";
		Sub1.ShowPlatform(10, 36, 135, 0);

		Sub1.ShowPlatform(8,46,84,59);
		GotoXY(100,60);
		SetColor(Black,LightCyan);
		cout <<"\"Central\" Station";
		Sub1.ShowPlatform(8,46,84,75);
		GotoXY(100,83);
		SetColor(Black,LightCyan);
		cout <<"\"Central\" Station";

		GotoXY(142,91);
		SetColor(Black,LightCyan);
		cout <<"\"SeaBreath\" Station ";
		Sub1.ShowPlatform(18, 20, 142, 91);
		GotoXY(110,91);
		SetColor(Black,LightCyan);
		cout <<"\"SeaBreath\" Station ";
		Sub1.ShowPlatform(18, 20, 110, 91);

		GotoXY(142,147);
		SetColor(Black,LightCyan);
		cout <<" \"Fontan\" Station   ";
		Sub1.ShowPlatform(18, 20, 142,147);
		GotoXY(110,147);
		SetColor(Black,LightCyan);
		cout <<" \"Fontan\" Station   ";
		Sub1.ShowPlatform(18, 20, 110,147);

		GotoXY(128,230);
		SetColor(Black,LightCyan);
		cout <<"\"South\" Station";
		Sub1.ShowPlatform(18,69,102,230);

		//----------Платформы--------- 2ая Ветка//
		GotoXY(18,240);
		SetColor(Black,LightCyan);
		cout <<"\"South2\" Station";
		Sub1.ShowPlatform(8,32,10,240);

		GotoXY(38,160);
		SetColor(Black,LightCyan);
		cout <<"\"Cheryomushki\"  Station";
		Sub1.ShowPlatform(18, 23, 38, 160);
		GotoXY(73,160);
		SetColor(Black,LightCyan);
		cout <<"\"Cheryomushki\"  Station";
		Sub1.ShowPlatform(18, 23, 73, 160);

		GotoXY(1,102);
		SetColor(Black,LightCyan);
		cout <<"\"Tairovo \"  Station";
		Sub1.ShowPlatform(18, 19, 1, 102);
		GotoXY(32,102);
		SetColor(Black,LightCyan);
		cout <<"\"Tairovo \"  Station";
		Sub1.ShowPlatform(18, 19, 32, 102);
	}
//////////////////////// Moldovich /////////////////////////////


void TrainThread ( void *pMyID)
{

	train_thread_status = false;

	char    MyCell1 = '^';
	char    MyCell2 = '|';
	char    MyCell3 = ' ';

	int    MyAttrib = BLACK_FONT+GRAY;
	int    MyAttrib1 = RED_FONT;
	int    MyAttrib2 = BLACK_FONT;
	int    MyAttrib3 = GREEN_FONT;
	int    MyAttrib4 = YELLOW_FONT;
	int    MyAttrib5 = BLACK_FONT+WHITE;

	char    BlankCell = '=';

	COORD   Coords,Old;

	Coords.X = 143;
	Coords.Y = 44;

	Old.X = Coords.X;
	Old.Y = Coords.Y;

	do
	{
		Sleep(25);  // скорость поезда


		// Wait for display to be available, then lock it.
		WaitForSingleObject( hScreenMutex, INFINITE );

		MAP[Old.X][Old.Y].setAll (BlankCell, MyAttrib5, "Alex Vernigora", "Train");

		/////////////////////////НАЧАЛО ПОЕЗДА//////////////////////////////

		MAP[Coords.X][Coords.Y].setAll (MyCell1, MyAttrib, "Alex Vernigora", "Train");

		/////////////////////// КРАСНЫЙ ВАГОН/////////////////////////////
		Coords.Y++;

		MAP[Coords.X][Coords.Y].setAll (MyCell3, MyAttrib1, "Alex Vernigora", "Train");

		Coords.Y++;

		MAP[Coords.X][Coords.Y].setAll (MyCell3, MyAttrib1, "Alex Vernigora", "Train");

		/////////////////////РАЗДЕЛИТЕЛЬ ВАГОНОВ///////////////////////////

		Coords.Y++;

		MAP[Coords.X][Coords.Y].setAll (MyCell2, MyAttrib, "Alex Vernigora", "Train");
		/////////////////////// ЖЕЛТЫЙ ВАГОН/////////////////////////////
		Coords.Y++;

		MAP[Coords.X][Coords.Y].setAll (MyCell3, MyAttrib4, "Alex Vernigora", "Train");

		Coords.Y++;

		MAP[Coords.X][Coords.Y].setAll (MyCell3, MyAttrib4, "Alex Vernigora", "Train");
		////////////////////////РАЗДЕЛИТЕЛЬ ВАГОНОВ////////////////////////

		Coords.Y++;

		MAP[Coords.X][Coords.Y].setAll (MyCell2, MyAttrib, "Alex Vernigora", "Train");

		/////////////////////// ЗЕЛЕНЫЙ ВАГОН/////////////////////////////
		Coords.Y++;

		MAP[Coords.X][Coords.Y].setAll (MyCell3, MyAttrib3, "Alex Vernigora", "Train");

		Coords.Y++;

		MAP[Coords.X][Coords.Y].setAll (MyCell3, MyAttrib3, "Alex Vernigora", "Train");

		///////////////////////////////////////////////////////////////////

		ReleaseMutex( hScreenMutex );

		// Increment the coordinates for next placement of the block. 
		Old.X = Coords.X;
		Old.Y = Coords.Y;

		Coords.Y-=9;

		if (Coords.Y == 6)			// СТИРАНИЕ ВАГОНОВ В КОНЦЕ ПУТИ
		{
			Old.Y = ++Coords.Y;
			Old.Y += 9;

			for (int i=0;i<10;i++)
			{
				MAP[Old.X][Old.Y].setAll (BlankCell, MyAttrib5, "Alex Vernigora", "Train");
				Old.Y--;
				Sleep(50);
			}

			Sleep(2000);
			train_thread_status = true;
			_endthread();
		}						//   СТИРАНИЕ ВАГОНОВ В КОНЦЕ ПУТИ (конец)

	} while( WaitForSingleObject( hRunMutex, 50 ) == WAIT_TIMEOUT);
}


const int trafLightCount = 154; //количество светофоров. меняем здесь
const int peopleCount = 150; //количество людей
const int carCount = 12; // количество автомобилей

void Streets ()
{
	///////////////////////КВАРТАЛЫ////////////////////////////////

	SetStreet(5, 5,20,30, MAP, "Max Vagner", "Komsomolskaya Street");
	SetStreet(40,5,20,40, MAP, "Alex Vernigora", "Marketplace");
	SetStreet(5,28,20,75, MAP, "Alex Vernigora", "Student's quarter");
	SetStreet(85,5,43,50, MAP, "Alex Vernigora", "St. Petersburg quarter");
	SetStreet(5,51,20,45, MAP, "Julia Pulova", "STEP quarter");
	SetStreet(55,51,20,40, MAP, "Julia Pulova", "Buharest quarter");
	SetStreet(5,119,20,45, MAP, "Julia Pulova", "Apartment complex Barcelona");
	SetStreet(55,119,20,35, MAP, "Julia Pulova", "Apartment complex Paris");
	SetStreet(95,119,20,40, MAP, "Julia Pulova", "Apartment complex Rome");
	SetStreet(5,142,59,20, MAP, "Julia Pulova", "Residential neighborhood");
	SetStreet(30,142,20,40, MAP, "Julia Pulova", "Residential neighborhoods");
	SetStreet(75,142,20,60, MAP, "Julia Pulova", "Residential neighborhoods");
	SetStreet(115,162,39,20, MAP, "Julia Pulova", "Residential neighborhoods");
	SetStreet(5,204,41,40, MAP, "Julia Pulova", "Residential neighborhoods 1");
	SetStreet(50,204,20,40, MAP, "Julia Pulova", "Residential neighborhoods 2");
	SetStreet(95,204,20,40, MAP, "Julia Pulova", "Residential neighborhoods 3"); 

}


void Bank ()
{
	////////////////////ПОРТ////////////////////////////////

	SetBank(140, 5, 65, 20, MAP, "Julia Pulova", "Sea Bank");

	//Marine Station

	SetBank(160, 25, 15, 20, MAP, "Julia Pulova", "Marine Station's Berth");

	//Yachtclub

	SetBank(180, 27, 2, 18, MAP, "Julia Pulova", "Yacht Club, berth N 4");
	SetBank(180, 36, 2, 18, MAP, "Julia Pulova", " Yacht Club, berth N 5");

	//Berth
	SetBank(160, 10, 5, 30, MAP, "Julia Pulova", "Berth N 1");
	SetBank(160, 50, 5, 30, MAP, "Julia Pulova", "Berth N 2"); 
	SetBank(160, 63, 2, 35, MAP, "Julia Pulova", "Berth N 8");
}

void Park ()
{
	////////////////////ПАРК////////////////////////////////

	SetPark(100, 51, 65, 35, MAP, "Julia Pulova", "Central Park");
	SetPark(5, 74, 42, 45, MAP, "Julia Pulova", "Central Park");
	SetPark(55, 74, 42, 45, MAP, "Julia Pulova", "Central Park");
	SetPark(30,165,36,80, MAP, "Julia Pulova", "City ​​Garden");
	SetPark(50,227,18,90, MAP, "Julia Pulova", "Public Garden");
}

void Sea ()
{
	///////////МОРЕ////////////////////////////////

	SetSea(160, 5, 240, 40, MAP, "Julia Pulova", "Sea");
}

void Beach ()
{
	//////////ПЛЯЖ////////////////////////////////

	SetBeach(140, 65, 180, 20, MAP, "Julia Pulova", "Beach");
}

void Roads ()
{
	///////////ДОРОГИ/////////////////////////////////////////////

	SetRoad(4,26,30,'h', MAP, "Alex Vernigora", "University street");
	SetRoad(39,26,40, 'h', MAP, "Alex Vernigora", "University street");
	SetRoad(4,49,45,'h', MAP, "Alex Vernigora", "Trading street");
	SetRoad(54,49,40,'h', MAP, "Alex Vernigora", "Trading street");
	SetRoad(99,49,36,'h', MAP, "Alex Vernigora", "Trading street");
	SetRoad(4,72,45,'h', MAP, "Alex Vernigora", "Bank street");
	SetRoad(54,72,40,'h', MAP, "Alex Vernigora", "Bank street");
	SetRoad(4,117,45,'h', MAP, "Alex Vernigora", "Parkovaya street");
	SetRoad(54,117,35,'h', MAP, "Alex Vernigora", "Parkovaya street");
	SetRoad(94,117,40,'h', MAP, "Alex Vernigora", "Parkovaya street");
	SetRoad(4,140,20,'h', MAP, "Alex Vernigora", "Tswetnaya street");
	SetRoad(29,140,40,'h', MAP, "Alex Vernigora", "Tswetnaya street");
	SetRoad(74,140,60,'h', MAP, "Alex Vernigora", "Tswetnaya street");
	SetRoad(29,163,40,'h', MAP, "Alex Vernigora", "Sadowaya street");
	SetRoad(74,163,35,'h', MAP, "Alex Vernigora", "Sadowaya street");
	SetRoad(4,202,19,'h', MAP, "Alex Vernigora", "Ekaterinenskaya street");
	SetRoad(29,202,15, 'h', MAP, "Alex Vernigora", "Ekaterinenskaya street");
	SetRoad(49,202,40,'h', MAP, "Alex Vernigora", "Ekaterinenskaya street");
	SetRoad(94,202,15,'h', MAP, "Alex Vernigora", "Ekaterinenskaya street");
	SetRoad(114,202,19,'h', MAP, "Alex Vernigora", "Ekaterinenskaya street");
	SetRoad(49,225,40,'h', MAP, "Alex Vernigora", "Tikhaya street");
	SetRoad(94,225,40,'h', MAP, "Alex Vernigora", "Tikhaya street");

	SetRoad(37,4,20,'v', MAP, "Alex Vernigora", "Alexander lane");
	SetRoad(82,4,20,'v', MAP, "Alex Vernigora", "St. Petersburg street");
	SetRoad(137,4,43,'v', MAP, "Alex Vernigora", "Primorskaya street");
	SetRoad(82,27,20,'v', MAP, "Alex Vernigora", "St. Petersburg street");
	SetRoad(52,50,20,'v', MAP, "Alex Vernigora", "Armeyskaya street");
	SetRoad(97,50,20,'v', MAP, "Alex Vernigora", "Knizniy lane");
	SetRoad(137,50,66,'v', MAP, "Alex Vernigora", "Primorskaya street");
	SetRoad(52,73,42,'v', MAP, "Alex Vernigora", "Armeyskaya street");
	SetRoad(52,118,20,'v', MAP, "Alex Vernigora", "Armeyskaya street");
	SetRoad(92,118,20,'v', MAP, "Alex Vernigora", "Tswetochniy lane");
	SetRoad(137,118,20,'v', MAP, "Alex Vernigora", "Primorskaya street");
	SetRoad(27,141,20,'v', MAP, "Alex Vernigora", "Italian street");
	SetRoad(72,141,20,'v', MAP, "Alex Vernigora", "Korabelniy lane");
	SetRoad(137,141,59,'v', MAP, "Alex Vernigora", "Primorskaya street");
	SetRoad(27,164,36,'v', MAP, "Alex Vernigora", "Italian street");
	SetRoad(112,164,36,'v', MAP, "Alex Vernigora", "French street");
	SetRoad(47,203,20,'v', MAP, "Alex Vernigora", "Italian street");
	SetRoad(47,226,18,'v', MAP, "Alex Vernigora", "Italian street");
	SetRoad(92,203,20,'v', MAP, "Alex Vernigora", "Sportivniy lane");
	SetRoad(137,203,20,'v', MAP, "Alex Vernigora", "Primorskaya street");
}

void Kvrt1 ()
{
	//Marine Station Building
	SetHouse(162,27,11,16,PURPLE, MAP, "Julia Pulova", "Marine Station Building");

	//Storehouses
	SetHouse(161,11,4,11,RED, MAP, "Julia Pulova", "Berth N 1, Storehouse");
	SetHouse(177,10,4,11,RED, MAP, "Julia Pulova", "Berth N 1, Storehouse");
	SetHouse (145,5,5,14,GRAY, MAP, "Julia Pulova", "Open Storehouse");
	SetHouse (145,15,11,14,DARK_BLUE, MAP, "Julia Pulova", "Port refrigerator building");
	SetHouse (145,40,10,14,RED, MAP, "Julia Pulova", "Storehouse");
	SetHouse (142,53,11,17,DARK_GREEN, MAP, "Julia Pulova", "Container Terminal, Storehouse");
	SetHouse(161,50,5,27,DARK_GREEN, MAP, "Julia Pulova", "Container Terminal, Storehouse");

	//St. Petersburg quarter
	SetHouse (86, 6, 19, 6, DARK_BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 6 floors");
	SetHouse (86, 28, 19, 6, DARK_BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 6 floors");
	SetHouse (93, 6, 5, 34, DARK_BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 6 floors");
	SetHouse (93, 42, 5, 34, DARK_BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 6 floors");
	SetHouse (128, 6, 19, 6, DARK_BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 6 floors");
	SetHouse (128, 28, 19, 6, DARK_BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 6 floors");
	SetHouse (94, 13, 12, 6, BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 5 floors");
	SetHouse (94, 28, 12, 6, BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 5 floors");
	SetHouse (120, 13, 12, 6, BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 5 floors");
	SetHouse (120, 28, 12, 6, BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 5 floors");
	SetHouse (102, 20, 5, 16, BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 5 floors");
	SetHouse (102, 28, 5, 16, BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 5 floors");
	SetHouse (108, 14, 5, 10, LIGHT_BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 4 floors");
	SetHouse (102, 34, 5, 10, LIGHT_BLUE, MAP, "Julia Pulova", "St. Petersburg quarter, Apartment house, 4 floors");

	//Marketplace
    SetHouse (42, 6, 4, 15, DARK_GREEN, MAP, "Julia Pulova", "Market, Fish shop" );
	SetHouse(42, 20, 4, 15, DARK_RED,  MAP, "Julia Pulova", "Market, Grocery" );
    SetHouse(42, 10, 4, 4, PURPLE,  MAP, "Julia Pulova", "Market, Pastry-shop");
	SetHouse(42, 16, 4, 4, PURPLE,  MAP, "Julia Pulova", "Market, Bakery");
	SetHouse(58, 6, 4, 15, RED,  MAP, "Julia Pulova", "Market, Butcher shop");
	SetHouse(58, 20, 4, 15, GREEN,  MAP, "Julia Pulova", "Market, Vegetable shop");
	SetHouse(74, 6, 10, 4, PURPLE,  MAP, "Julia Pulova", "Market, Fruit shop");
	SetHouse(74, 16, 8, 4, YELLOW,  MAP, "Julia Pulova", "Market, Dairy store");

	//Stalls
	SetHouse(47, 10, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N1");
	SetHouse(47, 15, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N2");
	SetHouse(50, 10, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N3");
	SetHouse(50, 15, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N4");
	SetHouse(53, 10, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N5");
	SetHouse(53, 15, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N6");
	SetHouse(60, 10, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N7");
	SetHouse(60, 15, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N8");
	SetHouse(63, 10, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N9");
	SetHouse(63, 15, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N10");
	SetHouse(66, 10, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N11");
	SetHouse(66, 15, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N12");
	SetHouse(69, 10, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N13");
	SetHouse(69, 15, 5, 2, GRAY,  MAP, "Julia Pulova", "Market, Stall N14");

    //Studen's quarter
	SetHouse(6, 29, 18, 10, DARK_BLUE,  MAP, "Julia Pulova", "University, Main building, 12 floors");
	SetHouse(18, 29, 4, 25, DARK_BLUE,  MAP, "Julia Pulova", "Education Building of the University, the right wing, 8 floors");
	SetHouse(18, 43, 4, 25, DARK_BLUE,  MAP, "Julia Pulova", "Education Building of the University, the left wing, 8 floors");

	SetHouse(56, 29, 18, 10, RED,  MAP, "Julia Pulova", "Shopping center and Leisure center, 5 floors");
	SetHouse(58, 32, 12, 6, RED,  MAP, "Julia Pulova", "Shopping center and Leisure center, 5 floors");
	SetHouse(51, 32, 12, 6, RED,  MAP, "Julia Pulova", "Shopping center and Leisure center, 5 floors");
	
	//Bench
	SetBench(19, 34, GRAY, MAP, "Julia Pulova", "Bench");
	SetBench(25, 34, GRAY, MAP, "Julia Pulova", "Bench");
	SetBench(31, 34, GRAY, MAP, "Julia Pulova", "Bench");
	SetBench(37, 34, GRAY, MAP, "Julia Pulova", "Bench");

	SetBench(19, 41, GRAY, MAP, "Julia Pulova", "Bench");
	SetBench(25, 41, GRAY, MAP, "Julia Pulova", "Bench");
	SetBench(31, 41, GRAY, MAP, "Julia Pulova", "Bench");
	SetBench(37, 41, GRAY, MAP, "Julia Pulova", "Bench");

	//Parking place
	Parking(69, 28, 11, 19, MAP, "Julia Pulova", "Parking place");

	//apartment complex 
	SetHouse(6, 120, 5, 15, DARK_GREEN, MAP, "Julia Pulova", "Apartment complex Barcelona, Apartment house, 9 floors");
	SetHouse(34, 120, 5, 15, DARK_GREEN,  MAP, "Julia Pulova", "Apartment complex Barcelona, Apartment house, 9 floors");
	SetHouse(22, 120, 8, 11, RED,  MAP, "Julia Pulova", "Apartment complex Barcelona, Apartment house, 15 floors");
	SetHouse(22, 130, 8, 11, RED,  MAP, "Julia Pulova", "Apartment complex Barcelona, Apartment house, 15 floors");
	SetHouse(6, 133, 5, 15, DARK_GREEN,  MAP, "Julia Pulova", "Apartment complex Barcelona, Apartment house, 9 floors");
	SetHouse(34, 133, 5, 15, DARK_GREEN,  MAP, "Julia Pulova", "Apartment complex Barcelona, Apartment house, 9 floors");

	//fountain
	SetHouse(7, 125, 8, 12, AZURE, MAP, "Julia Pulova", "Apartment complex Barcelona, Fountain");
	SetHouse(10, 127, 4, 6, AZURE, MAP, "Julia Pulova", "Apartment complex Barcelona, Fountain");

	//apartment complex Paris
	SetHouse(67, 125, 8, 10, PINK, MAP, "Julia Pulova", "Apartment complex Paris, Apartment house, 15 floors");
	SetHouse(58, 120, 4, 14, PURPLE, MAP, "Julia Pulova", "Apartment complex Paris, Apartment house, 10 floors");
	SetHouse(72, 120, 4, 14, PURPLE, MAP, "Julia Pulova", "Apartment complex Paris, Apartment house, 10 floors");
	SetHouse(58, 134, 4, 14, PURPLE, MAP, "Julia Pulova", "Apartment complex Paris, Apartment house, 10 floors");
	SetHouse(72, 134, 4, 14, PURPLE, MAP, "Julia Pulova", "Apartment complex Paris, Apartment house, 10 floors");
	SetHouse(57, 125, 8, 6, PURPLE, MAP, "Julia Pulova", "Apartment complex Paris, Apartment house, 10 floors");
	SetHouse(82, 125, 8, 6, PURPLE, MAP, "Julia Pulova", "Apartment complex Paris, Apartment house, 10 floors");

	//apartment complex Rome
	SetHouse(98, 120, 4, 25, YELLOW, MAP, "Julia Pulova", "Apartment complex Rome, Apartment house, 9 floors");
	SetHouse(127, 120, 14, 6, DARK_BLUE, MAP, "Julia Pulova", "Apartment complex Rome, Apartment house, 6 floors");
	SetHouse(106, 134, 4, 25, YELLOW,  MAP, "Julia Pulova", "Apartment complex Rome, Apartment house, 9 floors");
	SetHouse(97, 124, 14, 6, DARK_BLUE,  MAP, "Julia Pulova", "Apartment complex Rome, Apartment house, 6 floors");
	SetHouse(106, 126, 6, 18, DARK_BLUE,  MAP, "Julia Pulova", "Apartment complex Rome, Apartment house, 6 floors");

	//residential neighborhoods1
	SetHouse(7, 205, 10, 10, LIGHT_BLUE,  MAP, "Julia Pulova", "Residential neighborhoods 1, Apartment house, 16 floors");
	SetHouse(19, 205, 5, 24, RED,  MAP, "Julia Pulova", "Residential neighborhoods 1, Apartment house, 9 floors ");
	SetHouse(33, 211, 10, 10, LIGHT_BLUE,  MAP, "Julia Pulova", "Residential neighborhoods 1, Apartment house, 16 floors");
	SetHouse(7, 216, 5, 24, RED,  MAP, "Julia Pulova", "Residential neighborhoods 1, Apartment house, 9 floors");
	SetHouse(33, 234, 10, 10, LIGHT_BLUE,  MAP, "Julia Pulova", "Residential neighborhoods 1, Apartment house, 16 floors");
	SetHouse(7, 239, 5, 24, RED,  MAP, "Julia Pulova", "Residential neighborhoods 1, Apartment house, 9 floors");
	SetHouse(7, 228, 10, 10, LIGHT_BLUE,  MAP, "Julia Pulova", "Residential neighborhoods 1, Apartment house, 16 floors");
	SetHouse(19, 228, 5, 24, RED,  MAP, "Julia Pulova", "Residential neighborhoods 1, Apartment house, 9 floors");

	//residential neighborhoods2
	SetHouse( 52, 205, 7, 10, PURPLE,  MAP, "Julia Pulova", "Residential neighborhoods 2, Apartment house, 16 floors");
	SetHouse( 54, 213, 10, 6, YELLOW,  MAP, "Julia Pulova", "Residential neighborhoods 2, Apartment house, 9 floors");
	SetHouse( 65, 216, 7, 10, PURPLE,  MAP, "Julia Pulova", "Residential neighborhoods 2, Apartment house, 16 floors");
	SetHouse( 67, 205, 10, 6, YELLOW,  MAP, "Julia Pulova", "Residential neighborhoods 2, Apartment house, 9 floors");
	SetHouse( 78, 205, 7, 10, PURPLE,  MAP, "Julia Pulova", "Residential neighborhoods 2, Apartment house, 16 floors");
	SetHouse( 80, 213, 10, 6, YELLOW,  MAP, "Julia Pulova", "Residential neighborhoods 2, Apartment house, 9 floors");

	//residential neighborhoods3
	SetHouse(109, 209, 9, 12, DARK_RED,  MAP, "Julia Pulova", "Residential neighborhoods 3, Apartment house, 12 floors");
	SetHouse(97, 205, 18, 4, DARK_GREEN,  MAP, "Julia Pulova", "Residential neighborhoods 3, Apartment house, 9 floors");
	SetHouse(103, 205, 18, 4, DARK_GREEN,  MAP, "Julia Pulova", "Residential neighborhoods 3, Apartment house, 9 floors");
	SetHouse(123, 205, 18, 4, DARK_GREEN,  MAP, "Julia Pulova", "Residential neighborhoods 3, Apartment house, 9 floors");	
	SetHouse(129, 205, 18, 4, DARK_GREEN,  MAP, "Julia Pulova", "Residential neighborhoods 3, Apartment house, 9 floors");	
	SetHouse(110, 205, 3, 10, DARK_GREEN,  MAP, "Julia Pulova", "Residential neighborhoods 3, Apartment house, 9 floors");	
	SetHouse(110, 220, 3, 10, DARK_GREEN,  MAP, "Julia Pulova", "Residential neighborhoods 3, Apartment house, 9 floors");

	//Small park
	SetBench(53, 232, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(53, 239, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(63, 232, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(63, 239, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(73, 232, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(73, 239, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(110, 232, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(110, 239, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(120, 232, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(120, 239, GREEN, MAP, "Julia Pulova", "Bench");
    SetBench(130, 232, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(130, 239, GREEN, MAP, "Julia Pulova", "Bench");

	//fountain
	SetHouse(86, 230, 12, 16, AZURE, MAP, "Julia Pulova", "Fountain");
	SetHouse(90, 233, 6, 8, AZURE, MAP, "Julia Pulova", "Fountain");

	//flowerbeds
	for (int i=0; i < 30; ++i)
	{
		for (int j=0; j < 4; ++j)
		{
			SetFlower(52+i, 234+j, GREEN, MAP, "Julia Pulova", "Flowerbed");
			SetFlower(107+i, 234+j, GREEN, MAP, "Julia Pulova", "Flowerbed");
		}
	}

	//Big Park
	SetHouse(66, 166, 15, 8, WHITE, MAP, "Julia Pulova", "Pergola");
	SetHouse(66, 185, 15, 8, WHITE, MAP, "Julia Pulova", "Pergola");

	//fountains
	SetHouse(41, 176, 12, 16, AZURE, MAP, "Julia Pulova", "Fountain");
	SetHouse(45, 179, 6, 8, AZURE, MAP, "Julia Pulova", "Fountain");
	SetHouse(84, 176, 12, 16, AZURE, MAP, "Julia Pulova", "Fountain");
	SetHouse(88, 179, 6, 8, AZURE, MAP, "Julia Pulova", "Fountain");

	//bench
	SetBench(33, 170, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(45, 170, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(57, 170, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(33, 195, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(45, 195, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(57, 195, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(78, 170, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(90, 170, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(102, 170, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(78, 195, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(90, 195, GREEN, MAP, "Julia Pulova", "Bench");
	SetBench(102, 195, GREEN, MAP, "Julia Pulova", "Bench");

	//flowerbeds
	for (int i=0; i < 2; ++i)
	{
		for (int j=0; j < 12; ++j)
		{
			SetFlower(37+i, 176+j, GREEN, MAP, "Julia Pulova", "Flowerbed");
			SetFlower(59+i, 176+j, GREEN, MAP, "Julia Pulova", "Flowerbed");
			SetFlower(80+i, 176+j, GREEN, MAP, "Julia Pulova", "Flowerbed");
			SetFlower(102+i, 176+j, GREEN, MAP, "Julia Pulova", "Flowerbed");
		}
	}
	
	for (int i=0; i < 16; ++i)
	{
		for (int j=0; j < 2; ++j)
		{
			SetFlower(41+i, 173+j, GREEN, MAP, "Julia Pulova", "Flowerbed");
			SetFlower(41+i, 189+j, GREEN, MAP, "Julia Pulova", "Flowerbed");
			SetFlower(84+i, 173+j, GREEN, MAP, "Julia Pulova", "Flowerbed");
			SetFlower(84+i, 189+j, GREEN, MAP, "Julia Pulova", "Flowerbed");
		}
	}
	// ПРИМЕР (Домики)
	SetHouse(7,6,3,8,PURPLE, MAP, "Alex Vernigora", "Residential neighborhoods, Apartment house, 3 floors");
	SetHouse(16,6,3,10,RED, MAP, "Alex Vernigora", "Residential neighborhoods, Apartment house, 5 floors");
	SetHouse(26,6,10,7,GREEN, MAP, "Alex Vernigora", "Residential neighborhoods, Apartment house, 4 floors");
	SetHouse(26,16,5,7,GREEN, MAP, "Alex Vernigora", "Residential neighborhoods, Apartment house, 4 floors");
	SetHouse(7,19,5,12,RED, MAP, "Alex Vernigora", "Residential neighborhoods, Apartment house, 3 floors");
	SetHouse(20,21,3,13,PURPLE, MAP, "Alex Vernigora", "Residential neighborhoods, Apartment house, 3 floors");
	SetHouse(7,9,10,5,PURPLE, MAP, "Alex Vernigora", "Residential neighborhoods, Apartment house, 3 floors");

}

void trafficLights (traffic* trL)
{
	// первый перекрёсток

	trL[0].setData (34, 25, 10, 20, 0, "Julia Pulova");
	trL[1].setData (34, 27, 10, 20, 0, "Julia Pulova");
	trL[2].setData (40, 25, 10, 20, 0, "Julia Pulova");
	trL[3].setData (40, 27, 10, 20, 0, "Julia Pulova");
	trL[4].setData (39, 24, 20, 10, 1, "Julia Pulova");
	trL[5].setData (35, 24, 20, 10, 1, "Julia Pulova");

	//второй перекрёсток

	trL[6].setData (79, 25, 20, 10, 0, "Julia Pulova");
	trL[7].setData (79, 27, 20, 10, 0, "Julia Pulova");
	trL[8].setData (80, 28, 10, 20, 1, "Julia Pulova");
	trL[9].setData (84, 28, 10, 20, 1, "Julia Pulova");
	trL[10].setData (80, 24, 10, 20, 1, "Julia Pulova");
	trL[11].setData (84, 24, 10, 20, 1, "Julia Pulova");

	//трeтий перекресток
	trL[12].setData (94, 50, 20, 10, 0, "Julia Pulova");
	trL[13].setData(100, 50, 20, 10, 0, "Julia Pulova");
	trL[14].setData(99, 51, 20, 10, 1, "Julia Pulova");
	trL[15].setData(95, 51, 20, 10, 1, "Julia Pulova");
	trL[16].setData (94, 48, 20, 10, 0, "Julia Pulova");
	trL[17].setData(100, 48, 20, 10, 0, "Julia Pulova");

	//четвертый перекресток
	trL[18].setData(134, 48, 20, 10, 0, "Julia Pulova");
	trL[19].setData(134, 50, 20, 10, 0, "Julia Pulova");
	trL[20].setData(135, 51, 10, 20, 1, "Julia Pulova");
	trL[21].setData(139, 51, 10, 20, 1, "Julia Pulova");
	//trL[22].setData(135, 47, 10, 20, 1, "Julia Pulova");
	//trL[23].setData(139, 47, 10, 20, 1, "Julia Pulova");

	//пятый перекресток
	trL[22].setData(55, 48, 20, 10, 0, "Julia Pulova");
	trL[23].setData(55, 50, 20, 10, 0, "Julia Pulova");
	trL[24].setData(49, 48, 20, 10, 0, "Julia Pulova");
	trL[25].setData(49, 50, 20, 10, 0, "Julia Pulova");
	trL[26].setData(50, 51, 10, 20, 1, "Julia Pulova");
	trL[27].setData(54, 51, 10, 20, 1, "Julia Pulova");

	//шестой перекресток
	trL[28].setData(50, 70, 10, 20, 1, "Julia Pulova");
	trL[29].setData(54, 70, 10, 20, 1, "Julia Pulova");
	trL[30].setData(50, 74, 10, 20, 1, "Julia Pulova");
	trL[31].setData(54, 74, 10, 20, 1, "Julia Pulova");
	trL[32].setData(49, 71, 20, 10, 0, "Julia Pulova");
	trL[33].setData(49, 73, 20, 10, 0, "Julia Pulova");
	trL[34].setData(55, 71, 20, 10, 0, "Julia Pulova");
	trL[35].setData(55, 73, 20, 10, 0, "Julia Pulova");

	//седьмой перекресток
	trL[36].setData(94, 71, 20, 10, 0, "Julia Pulova");
	trL[37].setData(94, 73, 20, 10, 0, "Julia Pulova");
	trL[38].setData(95, 70, 10, 20, 1, "Julia Pulova");
	trL[39].setData(99, 70, 10, 20, 1, "Julia Pulova");

	//восьмой перекресток
	trL[40].setData(50, 115, 10, 20, 1, "Julia Pulova");
	trL[41].setData(54, 115, 10, 20, 1, "Julia Pulova");
	trL[42].setData(50, 119, 10, 20, 1, "Julia Pulova");
	trL[43].setData(54, 119, 10, 20, 1, "Julia Pulova");
	trL[44].setData(49, 116, 20, 10, 0, "Julia Pulova");
	trL[45].setData(49, 118, 20, 10, 0, "Julia Pulova");
	trL[46].setData(55, 116, 20, 10, 0, "Julia Pulova");
	trL[47].setData(55, 118, 20, 10, 0, "Julia Pulova");

	//девятый перекресток
	trL[48].setData(89, 116, 20, 10, 0, "Julia Pulova");
	trL[49].setData(89, 118, 20, 10, 0, "Julia Pulova");
	trL[50].setData(95, 116, 20, 10, 0, "Julia Pulova");
	trL[51].setData(95, 118, 20, 10, 0, "Julia Pulova");
	trL[52].setData(90, 119, 10, 20, 1, "Julia Pulova");
	trL[53].setData(94, 119, 10, 20, 1, "Julia Pulova");

	//десятый перекресток
	trL[54].setData(134, 116, 20, 10, 0, "Julia Pulova");
	trL[55].setData(134, 118, 20, 10, 0, "Julia Pulova");
	trL[56].setData(135, 115, 10, 20, 1, "Julia Pulova");
	trL[57].setData(139, 115, 10, 20, 1, "Julia Pulova");
	trL[58].setData(135, 119, 10, 20, 1, "Julia Pulova");
	trL[59].setData(139, 119, 10, 20, 1, "Julia Pulova");

	//одинадцатый перекресток
	trL[60].setData(135, 138, 10, 20, 1, "Julia Pulova");
	trL[61].setData(139, 138, 10, 20, 1, "Julia Pulova");
	trL[62].setData(135, 142, 10, 20, 1, "Julia Pulova");
	trL[63].setData(139, 142, 10, 20, 1, "Julia Pulova");
	trL[64].setData(134, 139, 20, 10, 0, "Julia Pulova");
	trL[65].setData(134, 141, 20, 10, 0, "Julia Pulova");

	//двенадцатый перекресток
	trL[66].setData(75, 139, 20, 10, 0, "Julia Pulova");
	trL[67].setData(75, 141, 20, 10, 0, "Julia Pulova");
	trL[68].setData(69, 139, 20, 10, 0, "Julia Pulova");
	trL[69].setData(69, 141, 20, 10, 0, "Julia Pulova");
	trL[70].setData(70, 142, 10, 20, 1, "Julia Pulova");
	trL[71].setData(74, 142, 10, 20, 1, "Julia Pulova");

	//тринадцатый перекресток
	trL[72].setData(75, 162, 20, 10, 0, "Julia Pulova");
	trL[73].setData(75, 164, 20, 10, 0, "Julia Pulova");
	trL[74].setData(69, 162, 20, 10, 0, "Julia Pulova");
	trL[75].setData(69, 164, 20, 10, 0, "Julia Pulova");

	//четырнадцатый перекресток
	trL[76].setData(30, 162, 20, 10, 0, "Julia Pulova");
	trL[77].setData(30, 164, 20, 10, 0, "Julia Pulova");
	trL[78].setData(29, 161, 10, 20, 1, "Julia Pulova");
	trL[79].setData(25, 161, 10, 20, 1, "Julia Pulova");
	trL[80].setData(29, 165, 10, 20, 1, "Julia Pulova");
	trL[81].setData(25, 165, 10, 20, 1, "Julia Pulova");

	//пятнадцатый перекресток
	trL[82].setData(29, 200, 10, 20, 1, "Julia Pulova");
	trL[83].setData(25, 200, 10, 20, 1, "Julia Pulova");
	trL[84].setData(24, 201, 20, 10, 0, "Julia Pulova");
	trL[85].setData(24, 203, 20, 10, 0, "Julia Pulova");
	trL[86].setData(30, 201, 20, 10, 0, "Julia Pulova");
	trL[87].setData(30, 203, 20, 10, 0, "Julia Pulova");

	//шестнадцатый перекресток
	trL[88].setData(89, 201, 20, 10, 0, "Julia Pulova");
	trL[89].setData(89, 203, 20, 10, 0, "Julia Pulova");
	trL[90].setData(95, 201, 20, 10, 0, "Julia Pulova");
	trL[91].setData(95, 203, 20, 10, 0, "Julia Pulova");
	trL[92].setData(90, 204, 10, 20, 1, "Julia Pulova");
	trL[93].setData(94, 204, 10, 20, 1, "Julia Pulova");

	//семнадцатый перекресток
	trL[94].setData(45, 204, 10, 20, 1, "Julia Pulova");
	trL[95].setData(49, 204, 10, 20, 1, "Julia Pulova");

	//восемнадцатый перекресток
	trL[96].setData(110, 200, 10, 20, 1, "Julia Pulova");
	trL[97].setData(114, 200, 10, 20, 1, "Julia Pulova");

	//девятнадцатый перекресток
	trL[98].setData(135, 200, 10, 20, 1, "Julia Pulova");
	trL[99].setData(139, 200, 10, 20, 1, "Julia Pulova");
	trL[100].setData(135, 204, 10, 20, 1, "Julia Pulova");
	trL[101].setData(139, 204, 10, 20, 1, "Julia Pulova");
	trL[102].setData(134, 201, 20, 10, 0, "Julia Pulova");
	trL[103].setData(134, 203, 20, 10, 0, "Julia Pulova");

	//двадцатый перекресток
	trL[104].setData(135, 223, 10, 20, 1, "Julia Pulova");
	trL[105].setData(139, 223, 10, 20, 1, "Julia Pulova");
	trL[106].setData(134, 224, 20, 10, 0, "Julia Pulova");
	trL[107].setData(134, 226, 20, 10, 0, "Julia Pulova");

	//двадцать первый перекресток
	trL[108].setData(95, 224, 20, 10, 0, "Julia Pulova");
	trL[109].setData(95, 226, 20, 10, 0, "Julia Pulova");
	trL[110].setData(89, 224, 20, 10, 0, "Julia Pulova");
	trL[111].setData(89, 226, 20, 10, 0, "Julia Pulova");
	trL[112].setData(90, 223, 10, 20, 1, "Julia Pulova");
	trL[113].setData(94, 223, 10, 20, 1, "Julia Pulova");

	//двадцать второй перекресток
	trL[114].setData(50, 224, 20, 10, 0, "Julia Pulova");
	trL[115].setData(50, 226, 20, 10, 0, "Julia Pulova");
	trL[116].setData(45, 223, 10, 20, 1, "Julia Pulova");
	trL[117].setData(49, 223, 10, 20, 1, "Julia Pulova");
	trL[118].setData(45, 227, 10, 20, 1, "Julia Pulova");
	trL[119].setData(49, 227, 10, 20, 1, "Julia Pulova");

	//adding
	//trL[122].setData(35, 8, 10, 20, 1, "Julia Pulova");
	//trL[123].setData(39, 8, 10, 20, 1, "Julia Pulova");
	//trL[124].setData(80, 8, 10, 20, 1, "Julia Pulova");
	//trL[125].setData(84, 8, 10, 20, 1, "Julia Pulova");

	trL[120].setData(135, 47, 10, 20, 1, "Julia Pulova");
	trL[121].setData(139, 47, 10, 20, 1, "Julia Pulova");
	trL[122].setData(80, 47, 10, 20, 1, "Julia Pulova");
	trL[123].setData(84, 47, 10, 20, 1, "Julia Pulova");

	//trL[130].setData(9, 25, 20, 10, 0, "Julia Pulova");
	//trL[131].setData(9, 27, 20, 10, 0, "Julia Pulova");
	//trL[124].setData(9, 48, 20, 10, 0, "Julia Pulova");
	//trL[125].setData(9, 50, 20, 10, 0, "Julia Pulova");

	//trL[126].setData(9, 71, 20, 10, 0, "Julia Pulova");
	//trL[127].setData(9, 73, 20, 10, 0, "Julia Pulova");
	trL[124].setData(24, 139, 20, 10, 0, "Julia Pulova");
	trL[125].setData(24, 141, 20, 10, 0, "Julia Pulova");

	trL[126].setData(89, 139, 20, 10, 0, "Julia Pulova");
	trL[127].setData(89, 141, 20, 10, 0, "Julia Pulova");
	trL[128].setData(30, 141, 20, 10, 0, "Julia Pulova");
	trL[129].setData(30, 139, 20, 10, 0, "Julia Pulova");
	
	trL[130].setData(25, 142, 10, 20, 1, "Julia Pulova");
	trL[131].setData(29, 142, 10, 20, 1, "Julia Pulova");
	trL[132].setData(50, 138, 10, 20, 1, "Julia Pulova");
	trL[133].setData(54, 138, 10, 20, 1, "Julia Pulova");

	trL[134].setData(90, 138, 10, 20, 1, "Julia Pulova");
	trL[135].setData(94, 138, 10, 20, 1, "Julia Pulova");
	trL[136].setData(95, 139, 20, 10, 0, "Julia Pulova");
	trL[137].setData(95, 141, 20, 10, 0, "Julia Pulova");

	trL[138].setData(135, 34, 10, 20, 1, "Julia Pulova");
	trL[139].setData(139, 34, 10, 20, 1, "Julia Pulova");
	trL[140].setData(114, 165, 10, 20, 1, "Julia Pulova");
	trL[141].setData(110, 165, 10, 20, 1, "Julia Pulova");

	trL[142].setData(109, 164, 20, 10, 0, "Julia Pulova");
	trL[143].setData(109, 162, 20, 10, 0, "Julia Pulova");
	trL[144].setData(115, 201, 20, 10, 0, "Julia Pulova");
	trL[145].setData(115, 203, 20, 10, 0, "Julia Pulova");

	trL[146].setData(50, 201, 20, 10, 0, "Julia Pulova");
	trL[147].setData(50, 203, 20, 10, 0, "Julia Pulova");
	trL[148].setData(44, 201, 20, 10, 0, "Julia Pulova");
	trL[149].setData(44, 203, 20, 10, 0, "Julia Pulova");

	trL[150].setData(70, 161, 10, 20, 1, "Julia Pulova");
	trL[151].setData(74, 161, 10, 20, 1, "Julia Pulova");
	trL[152].setData(109, 201, 10, 20, 1, "Julia Pulova");
	trL[153].setData(109, 203, 10, 20, 1, "Julia Pulova");
}

////////////////JULIA'S////////////////////

void Zebra()
{
	//Zebra Crossing
	//SetZebra (6, 25, 'v', MAP, "Julia Pulova", "Zebra, University street"); 
	//SetZebra (35, 6, 'h', MAP, "Julia Pulova", "Zebra, Alexander lane");
	SetZebra (31, 25, 'v', MAP, "Julia Pulova", "Zebra, University street");
	SetZebra (35, 22, 'h', MAP, "Julia Pulova", "Zebra, Alexander lane");
	SetZebra (41, 25, 'v', MAP, "Julia Pulova", "Zebra, University street");
	SetZebra (76, 25, 'v', MAP, "Julia Pulova", "Zebra, University street");
	//SetZebra (80, 6, 'h', MAP, "Julia Pulova", "Zebra, St. Petersburg street");
	SetZebra (80, 22, 'h', MAP, "Julia Pulova", "Zebra, St. Petersburg street");
	SetZebra (80, 29, 'h', MAP, "Julia Pulova", "Zebra, St. Petersburg street");

	SetZebra (80, 45, 'h', MAP, "Julia Pulova", "Zebra, St. Petersburg street");
	SetZebra (135, 45, 'h', MAP, "Julia Pulova", "Zebra, Primorskaya street");
	SetZebra (135, 32, 'h', MAP, "Julia Pulova", "Zebra, Primorskaya street");
	//SetZebra (135, 6, 'h', MAP, "Julia Pulova", "Zebra, Primorskaya street");//вместо 6-45
	SetZebra (135, 52, 'h', MAP, "Julia Pulova", "Zebra, Primorskaya street");
	SetZebra (131, 48, 'v', MAP, "Julia Pulova", "Zebra, Trading street");
	SetZebra (101, 48, 'v', MAP, "Julia Pulova", "Zebra, Trading street");
	SetZebra (91, 48, 'v', MAP, "Julia Pulova", "Zebra, Trading street");
	SetZebra (95, 52, 'h', MAP, "Julia Pulova", "Zebra, Knizniy lane");
	SetZebra (56, 48, 'v', MAP, "Julia Pulova", "Zebra, Trading street");

	SetZebra (46, 48, 'v', MAP, "Julia Pulova", "Zebra, Trading street");
	SetZebra (50, 52, 'h', MAP, "Julia Pulova", "Zebra, Armeyskaya street");
	//SetZebra (6, 48, 'v', MAP, "Julia Pulova", "Zebra, Trading street");
	//SetZebra (6, 71, 'v', MAP, "Julia Pulova", "Zebra, Bank street");
	SetZebra (46, 71, 'v', MAP, "Julia Pulova", "Zebra, Bank street");
	SetZebra (56, 71, 'v', MAP, "Julia Pulova", "Zebra, Bank street");
	SetZebra (91, 71, 'v', MAP, "Julia Pulova", "Zebra, Bank street");
	SetZebra (95, 68, 'h', MAP, "Julia Pulova", "Zebra, Knizniy lane");
	SetZebra (50, 68, 'h', MAP, "Julia Pulova", "Zebra, Armeyskaya street");
	SetZebra (50, 75, 'h', MAP, "Julia Pulova", "Zebra, Armeyskaya street");
	SetZebra (50, 113, 'h', MAP, "Julia Pulova", "Zebra, Armeyskaya street");

	SetZebra (50, 120, 'h', MAP, "Julia Pulova", "Zebra, Armeyskaya street");
	SetZebra (46, 116, 'v', MAP, "Julia Pulova", "Zebra, Parkovaya street");
	SetZebra (56, 116, 'v', MAP, "Julia Pulova", "Zebra, Parkovaya street");
	SetZebra (86, 139, 'v', MAP, "Julia Pulova", "Zebra, Tswetnaya street");
	SetZebra (96, 116, 'v', MAP, "Julia Pulova", "Zebra, Parkovaya street");
	SetZebra (86, 116, 'v', MAP, "Julia Pulova", "Zebra, Parkovaya street");
	SetZebra (90, 120, 'h', MAP, "Julia Pulova", "Zebra, Tswetochniy lane");
	SetZebra (135, 120, 'h', MAP, "Julia Pulova", "Zebra, Primorskaya street");
	SetZebra (135, 113, 'h', MAP, "Julia Pulova", "Primorskaya street");
	SetZebra (131, 116, 'v', MAP, "Julia Pulova", "Parkovaya street");

	SetZebra (135, 136, 'h', MAP, "Julia Pulova", "Zebra, Primorskaya street");
	SetZebra (135, 143, 'h', MAP, "Julia Pulova", "Zebra, Primorskaya street");
	SetZebra (131, 139, 'v', MAP, "Julia Pulova", "Zebra, Tswetnaya street");
	SetZebra (96, 139, 'v', MAP, "Julia Pulova", "Zebra, Tswetnaya street");
	SetZebra (90, 136, 'h', MAP, "Julia Pulova", "Zebra, Tswetochniy lane");
	SetZebra (76, 139, 'v', MAP, "Julia Pulova", "Zebra, Tswetnaya street");
	SetZebra (66, 139, 'v', MAP, "Julia Pulova", "Zebra, Tswetnaya street");
	SetZebra (70, 143, 'h', MAP, "Julia Pulova", "Zebra, Korabelniy lane");
	SetZebra (50, 136, 'h', MAP, "Julia Pulova", "Zebra, Armeyskaya street");
	SetZebra (31, 139, 'v', MAP, "Julia Pulova", "Zebra, Tswetnaya street");

	SetZebra (21, 139, 'v', MAP, "Julia Pulova", "Zebra, Tswetnaya street");
	SetZebra (25, 143, 'h', MAP, "Julia Pulova", "Zebra, Italian street");
	SetZebra (25, 159, 'h', MAP, "Julia Pulova", "Zebra, Italian street");
	SetZebra (25, 166, 'h', MAP, "Julia Pulova", "Zebra, Italian street");
	SetZebra (31, 162, 'v', MAP, "Julia Pulova", "Zebra, Sadowaya street");
	SetZebra (66, 162, 'v', MAP, "Julia Pulova", "Zebra, Sadowaya street");
	SetZebra (76, 162, 'v', MAP, "Julia Pulova", "Zebra, Sadowaya street");
	SetZebra (106, 162, 'v', MAP, "Julia Pulova", "Zebra, Sadowaya street");
	SetZebra (110, 166, 'h', MAP, "Julia Pulova", "Zebra, French street");
	SetZebra (110, 198, 'h', MAP, "Julia Pulova", "Zebra, French street");

	SetZebra (135, 198, 'h', MAP, "Julia Pulova", "Zebra, Primorskaya street");
	SetZebra (135, 205, 'h', MAP, "Julia Pulova", "Zebra, Primorskaya street");
	SetZebra (131, 201, 'v', MAP, "Julia Pulova", "Zebra, Ekaterinenskaya street");
	SetZebra (135, 221, 'h', MAP, "Julia Pulova", "Zebra, Primorskaya street");
	SetZebra (131, 224, 'v', MAP, "Julia Pulova", "Zebra, Tikhaya street");
	SetZebra (96, 224, 'v', MAP, "Julia Pulova", "Zebra, Tikhaya street");
	SetZebra (86, 224, 'v', MAP, "Julia Pulova", "Zebra, Tikhaya street");
	SetZebra (96, 201, 'v', MAP, "Julia Pulova", "Zebra, Ekaterinenskaya street");
	SetZebra (86, 201, 'v', MAP, "Julia Pulova", "Zebra, Ekaterinenskaya street");
	SetZebra (116, 201, 'v', MAP, "Julia Pulova", "Zebra, Ekaterinenskaya street");

	SetZebra (90, 205, 'h', MAP, "Julia Pulova", "Zebra, Sportivniy lane");
	SetZebra (90, 221, 'h', MAP, "Julia Pulova", "Zebra, Sportivniy lane");
	SetZebra (51, 224, 'v', MAP, "Julia Pulova", "Zebra, Tikhaya street");
	SetZebra (51, 201, 'v', MAP, "Julia Pulova", "Zebra, Ekaterinenskaya street");
	SetZebra (31, 201, 'v', MAP, "Julia Pulova", "Zebra, Ekaterinenskaya street");
	SetZebra (21, 201, 'v', MAP, "Julia Pulova", "Zebra, Ekaterinenskaya street");
	SetZebra (41, 201, 'v', MAP, "Julia Pulova", "Zebra, Ekaterinenskaya street");
	SetZebra (25, 198, 'h', MAP, "Julia Pulova", "Zebra,Italian street");
	SetZebra (45, 221, 'h', MAP, "Julia Pulova", "Zebra,Italian street");
	SetZebra (45, 228, 'h', MAP, "Julia Pulova", "Zebra,Italian street");
	SetZebra (70, 159, 'h', MAP, "Julia Pulova", "Zebra,Korabelniy lane");

	SetZebra (106, 201, 'v', MAP, "Julia Pulova", "Zebra,Ekaterininskaya street");
	SetZebra (45, 205, 'h', MAP, "Julia Pulova", "Zebra,Italian street");
}

void Yacht()
{
	//Yachts

	SetYacht( 182, 33, 2, 'v', MAP, "Julia Pulova", "Yacht \"ELENA\"");
	SetYacht( 186, 33, 2, 'v', MAP, "Julia Pulova", "Yacht \"ANNA\'");
	SetYacht( 190, 33, 2, 'v', MAP, "Julia Pulova", "Yacht \"KATERINA\"");
	SetYacht( 194, 33, 2, 'v', MAP, "Julia Pulova", "Yacht \"MARINA\"");
	SetYacht( 182, 37, 2, 'v', MAP, "Julia Pulova", "Yacht \"ALEXANDRA\"");
	SetYacht( 186, 37, 2, 'v', MAP, "Julia Pulova", "Yacht \"MARIYA\"");
	SetYacht( 190, 37, 2, 'v', MAP, "Julia Pulova", "Yacht \"OLGA\"");
	SetYacht( 194, 37, 2, 'v', MAP, "Julia Pulova", "Yacht \"VICTORIA\"");
	SetYacht( 182, 28, 2, 'v', MAP, "Julia Pulova", "Yacht \"GLORIYA\"");
	SetYacht( 186, 28, 2, 'v', MAP, "Julia Pulova", "Yacht \"SVETLANA\"");
	SetYacht( 190, 28, 2, 'v', MAP, "Julia Pulova", "Yacht \"GALINA\"");
	SetYacht( 194, 28, 2, 'v', MAP, "Julia Pulova", "Yacht \"ANGELINA\"");
	SetYacht( 182, 24, 2, 'v', MAP, "Julia Pulova", "Yacht \"JULIA\"");
	SetYacht( 186, 24, 2, 'v', MAP, "Julia Pulova", "Yacht \"TATIANA\"");
	SetYacht( 190, 24, 2, 'v', MAP, "Julia Pulova", "Yacht \"VALENTINA\"");
	SetYacht( 194, 24, 2, 'v', MAP, "Julia Pulova", "Yacht \"ALLA\"");

	SetYacht (194, 75, 2, 'v', MAP, "Julia Pulova", "Yacht \"ALENA\"");
	SetYacht (189, 85, 2, 'v', MAP, "Julia Pulova", "Yacht \"VASELISA\"");
	SetYacht (194, 95, 2, 'v', MAP, "Julia Pulova", "Yacht \"KRISTINA\"");
	SetYacht (189, 105, 2, 'v', MAP, "Julia Pulova", "Yacht \"NATALIYA\"");
}

void Ship()
{
	//Ships
	SetShip( 163, 55, 17, BLACK, 'h', MAP, "Julia Pulova", "Ship \"N.TESLA\"");
	SetShip ( 163, 40, 15,WHITE,'h', MAP, "Julia Pulova", "Ship \"SISLEY\"");
	SetShip(166, 15, 17, DARK_RED, 'h', MAP, "Julia Pulova", "Ship \"A.EINSTEIN\"");

	SetShip (196, 125, 12, DARK_RED, 'v', MAP, "Julia Pulova", "Ship \"GEORGE V\"");
	SetShip (196, 145, 12, 0, 'v', MAP, "Julia Pulova", "Ship \"DODO III\"");
	SetShip (196, 185, 14, 0, 'v', MAP, "Julia Pulova", "Ship \"KARAMELKA\"");
	SetShip (196, 220, 12, DARK_RED, 'v', MAP, "Julia Pulova", "Ship\"MESSA\"");
}

void RailWay()
{
	//Railway
	SetRailWay(142, 5, 48, MAP, "Julia Pulova", "Port's RailWay");
}

void BeachHouse()
{
	//dolphinarium

	SetBeachHouse (141,66,11,18, WHITE, MAP, "Julia Pulova", "Dolphinarium");
	SetBeachHouse (145, 68, 7, 10, AZURE, MAP, "Julia Pulova", "Dolphinarium");

	//Observatory

	SetBeachHouse(141, 230, 11, 18, WHITE, MAP, "Julia Pulova", "Observatory");
	SetBeachHouse (145, 232, 7, 10, MUSTARD, MAP, "Julia Pulova", "Observatory");
	SetBeachHouse (147, 233, 5, 6, WHITE, MAP, "Julia Pulova", "Observatory");

	//Hotel
	SetBeachHouse (141, 97, 4, 18, WHITE, MAP, "Julia Pulova", "Hotel \"PALMA\"");
	SetBeachHouse (141,114, 4, 18, WHITE, MAP, "Julia Pulova", "Hotel \"PALMA\"");
	SetBeachHouse (141, 100, 15, 4, WHITE, MAP, "Julia Pulova", "Hotel \"PALMA\"");
	SetBeachHouse (146, 102, 8, 5, AZURE, MAP, "Julia Pulova", "Hotel \"PALMA\"");

	SetBeachHouse (141, 145, 4, 18, WHITE, MAP, "Julia Pulova", "Hotel \"PALMA\"");
	SetBeachHouse (141, 139, 16, 5, WHITE, MAP, "Julia Pulova", "Hotel \"PALMA\"");
	SetBeachHouse (146, 139, 7, 10, GREEN, MAP, "Julia Pulova", "Hotel \"PALMA\"");
	SetBeachHouse (146, 148, 7, 10, GREEN, MAP, "Julia Pulova", "Hotel \"PALMA\"");

	SetBeachHouse (141, 176, 10, 4, WHITE, MAP, "Julia Pulova", "Hotel \"PALMA\"");
	SetBeachHouse (141, 187, 10, 4, WHITE, MAP, "Julia Pulova", "Hotel \"PALMA\"");
}

void PublicBeach()
{
	SetPublicBeach (149, 78, 3, 10, RED, MAP, "Julia Pulova", "Public Beach" );
	SetPublicBeach (149, 81, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 84, 3, 10, RED, MAP, "Julia Pulova", "Public Beach" );
	SetPublicBeach (149, 87, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 90, 3, 10, RED, MAP, "Julia Pulova", "Public Beach" );
	SetPublicBeach (149, 93, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 119, 3, 10, RED , MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 122, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 125, 3, 10, RED , MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 128, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 131, 3, 10, RED , MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 134, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");

	SetPublicBeach (149, 156, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 159, 3, 10, RED , MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 162, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 165, 3, 10, RED , MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 168, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 171, 3, 10, RED , MAP, "Julia Pulova", "Public Beach");

	SetPublicBeach (149, 176, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 179, 3, 10, DARK_BLUE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 182, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 185, 3, 10, DARK_BLUE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 188, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 191, 3, 10, DARK_BLUE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 194, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");

	SetPublicBeach (149, 202, 3, 10, RED, MAP, "Julia Pulova", "Public Beach" );
	SetPublicBeach (149, 205, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 208, 3, 10, RED , MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 211, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 214, 3, 10, RED , MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 217, 3, 10, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (149, 220, 3, 10, RED , MAP, "Julia Pulova", "Public Beach");

	SetPublicBeach (152, 101, 2, 8, DARK_BLUE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (152, 103, 2, 8, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (152, 105, 2, 8, DARK_BLUE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (152, 107, 2, 8, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (152, 109, 2, 8, DARK_BLUE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (152, 111, 2, 8, WHITE, MAP, "Julia Pulova", "Public Beach");
	SetPublicBeach (152, 113, 1, 8, DARK_BLUE, MAP, "Julia Pulova", "Public Beach");
}

void Tree ()
{
	//St. Petersburg quarter's trees
	SetTree (102, 15, GRAY, MAP, "Julia Pulova", "Maple");
	SetTree (102, 16, GRAY, MAP, "Julia Pulova", "Maple");
	SetTree (102, 17, GRAY, MAP, "Julia Pulova", "Maple");
	SetTree (104, 15, GRAY, MAP, "Julia Pulova", "Maple");
	SetTree (104, 16, GRAY, MAP, "Julia Pulova", "Maple");
	SetTree (104, 17, GRAY, MAP, "Julia Pulova", "Maple");
	SetTree (114, 35, GRAY, MAP, "Julia Pulova", "Maple");
	SetTree (114, 36, GRAY, MAP, "Julia Pulova", "Maple");
	SetTree (114, 37, GRAY, MAP, "Julia Pulova", "Maple");
	SetTree (116, 35, GRAY, MAP, "Julia Pulova", "Maple");
	SetTree (116, 36, GRAY, MAP, "Julia Pulova", "Maple");
	SetTree (116, 37, GRAY, MAP, "Julia Pulova", "Maple");

	//Small park
	for (int i=0; i < 30; ++i)
	{
		SetTree (50+i+2, 228, GREEN, MAP, "Julia Pulova", "Chestnut tree");
		SetTree (50+i+2, 230, GREEN, MAP, "Julia Pulova", "Chestnut tree");
		SetTree (50+i+2, 241, GREEN, MAP, "Julia Pulova", "Chestnut tree");
		SetTree (50+i+2, 243, GREEN, MAP, "Julia Pulova", "Chestnut tree");

		SetTree (105+i+2, 228, GREEN, MAP, "Julia Pulova", "Chestnut tree");
		SetTree (105+i+2, 230, GREEN, MAP, "Julia Pulova", "Chestnut tree");
		SetTree (105+i+2, 241, GREEN, MAP, "Julia Pulova", "Chestnut tree");
		SetTree (105+i+2, 243, GREEN, MAP, "Julia Pulova", "Chestnut tree");
	}

	//Big park
	for (int i=0; i < 32; ++i)
	{
		SetTree (32+i, 166, GREEN, MAP, "Julia Pulova", "Oak");
		SetTree (32+i, 168, GREEN, MAP, "Julia Pulova", "Oak");
		SetTree (32+i, 197, GREEN, MAP, "Julia Pulova", "Oak");
		SetTree (32+i, 199, GREEN, MAP, "Julia Pulova", "Oak");

		SetTree (76+i, 166, GREEN, MAP, "Julia Pulova", "Oak");
		SetTree (76+i, 168, GREEN, MAP, "Julia Pulova", "Oak");
		SetTree (76+i, 197, GREEN, MAP, "Julia Pulova", "Oak");
		SetTree (76+i, 199, GREEN, MAP, "Julia Pulova", "Oak");
	}

	//residential neighborhoods1
	for (int i=0; i < 18; ++i)
	{
		SetTree (7+i*2, 222, GRAY, MAP, "Julia Pulova", "White Acacia");
		SetTree (7+i*2, 226, GRAY, MAP, "Julia Pulova", "White Acacia");
	}

	//apartment complex Barselona
	for (int i=0; i < 7; ++i)
	{
		SetTree (35+i*2, 125, GRAY, MAP, "Julia Pulova", "Birch");
		SetTree (35+i*2, 127, GRAY, MAP, "Julia Pulova", "Birch");
		SetTree (35+i*2, 130, GRAY, MAP, "Julia Pulova", "Birch");
		SetTree (35+i*2, 132, GRAY, MAP, "Julia Pulova", "Birch");
	}
	
	//Studen's quarter
	//flowerbed
	for (int i=0; i<10; ++i)
	{
		for (int j=0; j<4; ++j)
		{
			SetFlower(26+i, 36+j, GRAY, MAP, "Julia Pulova", "Daisy");
		}
	}
	//trees
	for (int i=0; i<8; ++i)
	{
			SetTree(18+i, 36, GRAY, MAP, "Julia Pulova", "Maple");
			SetTree(18+i, 39, GRAY, MAP, "Julia Pulova", "Maple");
			SetTree(36+i, 36, GRAY, MAP, "Julia Pulova", "Maple");
			SetTree(36+i, 39, GRAY, MAP, "Julia Pulova", "Maple");
	}

	for (int i=0; i<4; ++i)
	{
		for (int j=0; j<9; ++j)
		{
			SetTree(44+i*2, 29+j*2, GRAY, MAP, "Julia Pulova", "Oak");
		}
	}

	for (int i=0; i<3; ++i)
	{
		SetTree(67, 30+i*2, GRAY, MAP, "Julia Pulova", "Maple");
		SetTree(67, 41+i*2, GRAY, MAP, "Julia Pulova", "Maple");
	}
}

void SetHomoSapiens ()

{
	SetHomoSapiens(147,127, MUSTARD, 'f', MAP, "Julia Pulova", "Nastya");
	SetHomoSapiens(145,127, MUSTARD, 'm', MAP, "Julia Pulova", "Oleg");
	SetHomoSapiens(161,127, MUSTARD, 'f', MAP, "Julia Pulova", "Vlasta");
	SetHomoSapiens(162,130, AZURE, 'f', MAP, "Julia Pulova", "Katya");
	SetHomoSapiens(162,131, AZURE, 'm', MAP, "Julia Pulova", "Sasha");
	SetHomoSapiens(162,121, AZURE, 'm', MAP, "Julia Pulova", "Vova");
	SetHomoSapiens(162,125, AZURE, 'm', MAP, "Julia Pulova", "Vlad");
	SetHomoSapiens(145,92, MUSTARD, 'f', MAP, "Julia Pulova", "Lena");
	SetHomoSapiens(143,90, MUSTARD, 'm', MAP, "Julia Pulova", "Andrey");
	SetHomoSapiens(145,85, MUSTARD, 'f', MAP, "Julia Pulova", "Alena");
	SetHomoSapiens(142,83, MUSTARD, 'f', MAP, "Julia Pulova", "Vika");
	SetHomoSapiens(40,38, GRAY, 'f', MAP, "Julia Pulova", "Masha");
	SetHomoSapiens(22,37, GRAY, 'f', MAP, "Julia Pulova", "Julia");
	SetHomoSapiens(22,38, GRAY, 'm', MAP, "Julia Pulova", "Kirill");
	SetHomoSapiens(20,34, GRAY, 'm', MAP, "Julia Pulova", "Vlad");
	SetHomoSapiens(27,34, GRAY, 'f', MAP, "Julia Pulova", "Alina");
	SetHomoSapiens(26,34, GRAY, 'f', MAP, "Julia Pulova", "Ira");
	SetHomoSapiens(52,30, GRAY, 'm', MAP, "Julia Pulova", "Igor");
	SetHomoSapiens(71,38, BLACK, 'f', MAP, "Julia Pulova", "Diana");


	//Katya
	SetHomoSapiens(6,10, GRAY, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(6,15, GRAY, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(22,19, GRAY, 'f', MAP, "Bondarenko Katya", "Sveta");
	SetHomoSapiens(33,9, GRAY, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(40,7, GRAY, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(43,15, GRAY, 'f', MAP, "Bondarenko Katya", "Luda");
	SetHomoSapiens(58,17, GRAY, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(73,5, GRAY, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(71,24, GRAY, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(92,5, GRAY, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(104,12, GRAY, 'm', MAP, "Bondarenko Katya", "Vasya");
	SetHomoSapiens(93,25, GRAY, 'f', MAP, "Bondarenko Katya", "Nastya");
	SetHomoSapiens(133,27, GRAY, 'f', MAP, "Bondarenko Katya", "Alena");
	SetHomoSapiens(126,37, GRAY, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(92,43, GRAY, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(115,36, GRAY, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(120,47, GRAY, 'f', MAP, "Bondarenko Katya", "Lena");
	SetHomoSapiens(159,10, GRAY, 'f', MAP, "Bondarenko Katya", "Julia");
	SetHomoSapiens(188,14, GRAY, 'm', MAP, "Bondarenko Katya", "Andrey");
	SetHomoSapiens(185,28, GRAY, 'm', MAP, "Bondarenko Katya", "Vlad");
	SetHomoSapiens(197,28, GRAY, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(157,35, GRAY, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(179,39, GRAY, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(189,52, GRAY, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(147,52, GRAY, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(19,65, GRAY, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(46,61, GRAY, 'f', MAP, "Bondarenko Katya", "Vika");
	SetHomoSapiens(57,70, GRAY, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(64,55, GRAY, 'f', MAP, "Bondarenko Katya", "Alena");
	SetHomoSapiens(80,64, GRAY, 'f', MAP, "Bondarenko Katya", "Alena");
	SetHomoSapiens(94,52, GRAY, 'm', MAP, "Bondarenko Katya", "Vasya");
	SetHomoSapiens(118,60, GREEN, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(101,54, GREEN, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(103,54, GREEN, 'f', MAP, "Bondarenko Katya", "Julia");
	SetHomoSapiens(122,54, GREEN, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(129,54, GREEN, 'm', MAP, "Bondarenko Katya", "Andrey");
	SetHomoSapiens(129,67, GREEN, 'f', MAP, "Bondarenko Katya", "Lena");
	SetHomoSapiens(130,67, GREEN, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(130,71, GREEN, 'm', MAP, "Bondarenko Katya", "Vlad");
	SetHomoSapiens(123,67, GREEN, 'f', MAP, "Bondarenko Katya", "Vika");
	SetHomoSapiens(111,71, GREEN, 'f', MAP, "Bondarenko Katya", "Julia");
	SetHomoSapiens(113,71, GREEN, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(103,71, GREEN, 'f', MAP, "Bondarenko Katya", "Nastya");
	SetHomoSapiens(102,67, GREEN, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(101,67, GREEN, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(9,58, GREEN, 'f', MAP, "Bondarenko Katya", "Alena");
	SetHomoSapiens(20,52, GREEN, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(11,77, GREEN, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(17,75, GREEN, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(25,75, GREEN, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(34,77, GREEN, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(12,81, GREEN, 'm', MAP, "Bondarenko Katya", "Andrey");
	SetHomoSapiens(13,84, GREEN, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(11,87, GREEN, 'm', MAP, "Bondarenko Katya", "Vasya");
	SetHomoSapiens(14,91, GREEN, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(13,97, GREEN, 'm', MAP, "Bondarenko Katya", "Vlad");
	SetHomoSapiens(43,101, GREEN, 'f', MAP, "Bondarenko Katya", "Vika");
	SetHomoSapiens(46,108, GREEN, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(13,111, GREEN, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(11,115, GREEN, 'f', MAP, "Bondarenko Katya", "Lena");
	SetHomoSapiens(23,113, GREEN, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(30,115, GREEN, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(33,113, GREEN, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(43,111, GREEN, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(46,113, GREEN, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(58,98, GREEN, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(57,97, GREEN, 'f', MAP, "Bondarenko Katya", "Julia");
	SetHomoSapiens(60,95, GREEN, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(66,89, GREEN, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(67,89, GREEN, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(67,98, GREEN, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(66,103, GREEN, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(68,82, GREEN, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(58,108, GREEN, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(97,107, GREEN, 'f', MAP, "Bondarenko Katya", "Julia");
	SetHomoSapiens(95,95, GREEN, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(98,80, GREEN, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(110,76, GREEN, 'm', MAP, "Bondarenko Katya", "Vlad");
	SetHomoSapiens(112,88, GREEN, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(109,97, GREEN, 'f', MAP, "Bondarenko Katya", "Nastya");
	SetHomoSapiens(119,102, GREEN, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(129,105, GREEN, 'f', MAP, "Bondarenko Katya", "Lena");
	SetHomoSapiens(124,92, GREEN, 'm', MAP, "Bondarenko Katya", "Andrey");
	SetHomoSapiens(129,83, GREEN, 'f', MAP, "Bondarenko Katya", "Vika");
	SetHomoSapiens(132,76, GREEN, 'm', MAP, "Bondarenko Katya", "Vasya");
	SetHomoSapiens(105,113, GREEN, 'f', MAP, "Bondarenko Katya", "Alena");
	SetHomoSapiens(61,115, GREEN, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(81,78, GREEN, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(9,119, GRAY, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(20,126, GRAY, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(34,126, GRAY, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(49,137, GRAY, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(56,133, GRAY, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(59,124, GRAY, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(78,127, GRAY, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(88,121, GRAY, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(95,136, GRAY, 'm', MAP, "Bondarenko Katya", "Vlad");
	SetHomoSapiens(105,125, GRAY, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(110,132, GRAY, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(124,122, GRAY, 'f', MAP, "Bondarenko Katya", "Julia");
	SetHomoSapiens(133,136, GRAY, 'f', MAP, "Bondarenko Katya", "Lena");
	SetHomoSapiens(130,146, GRAY, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(98,146, GRAY, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(109,156, GRAY, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(87,157, GRAY, 'f', MAP, "Bondarenko Katya", "Alena");
	SetHomoSapiens(84,146, GRAY, 'f', MAP, "Bondarenko Katya", "Julia");
	SetHomoSapiens(75,144, GRAY, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(68,157, GRAY, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(58,153, GRAY, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(45,147, GRAY, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(31,157, GRAY, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(27,167, GRAY, 'm', MAP, "Bondarenko Katya", "Vlad");
	SetHomoSapiens(60,171, GREEN, 'f', MAP, "Bondarenko Katya", "Nastya");
	SetHomoSapiens(59,171, GREEN, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(51,175, GREEN, 'f', MAP, "Bondarenko Katya", "Vika");
	SetHomoSapiens(34,171, GREEN, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(144,159, MUSTARD, 'f', MAP, "Bondarenko Katya", "Alena");
	SetHomoSapiens(142,165, MUSTARD, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(146,172, MUSTARD, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(16,183, GRAY, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(14,189, GRAY, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(17,196, GRAY, 'f', MAP, "Bondarenko Katya", "Lena");
	SetHomoSapiens(35,194, GRAY, 'm', MAP, "Bondarenko Katya", "Andrey");
	SetHomoSapiens(36,194, GREEN, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(39,188, GREEN, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(40,181, GREEN, 'm', MAP, "Bondarenko Katya", "Vasya");
	SetHomoSapiens(48,171, GREEN, 'f', MAP, "Bondarenko Katya", "Julia");
	SetHomoSapiens(42,167, GREEN, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(57,184, GREEN, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(47,194, GREEN, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(52,196, GREEN, 'f', MAP, "Bondarenko Katya", "Alena");
	SetHomoSapiens(64,191, GREEN, 'f', MAP, "Bondarenko Katya", "Vika");
	SetHomoSapiens(68,183, GREEN, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(75,191, GREEN, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(80,194, GREEN, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(78,177, GREEN, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(83,175, GREEN, 'f', MAP, "Bondarenko Katya", "Julia");
	SetHomoSapiens(91,171, GREEN, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(92,171, GREEN, 'm', MAP, "Bondarenko Katya", "Vlad");
	SetHomoSapiens(85,167, GREEN, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(104,171, GREEN, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(108,179, GREEN, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(105,191, GREEN, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(105,194, GREEN, 'f', MAP, "Bondarenko Katya", "Nastya");
	SetHomoSapiens(93,194, GREEN, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(92,194, GREEN, 'f', MAP, "Bondarenko Katya", "Alena");
	SetHomoSapiens(91,194, GREEN, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(108,167, GRAY, 'f', MAP, "Bondarenko Katya", "Vika");
	SetHomoSapiens(116,171, GRAY, 'f', MAP, "Bondarenko Katya", "Julia");
	SetHomoSapiens(116,187, GRAY, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(146,186, MUSTARD, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(162,196, AZURE, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(161,200, AZURE, 'f', MAP, "Bondarenko Katya", "Lena");
	SetHomoSapiens(152,200, MUSTARD, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(142,208, MUSTARD, 'm', MAP, "Bondarenko Katya", "Andrey");
	SetHomoSapiens(146,212, MUSTARD, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(143,218, MUSTARD, 'm', MAP, "Bondarenko Katya", "Vlad");
	SetHomoSapiens(17,206, GRAY, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(31,214, GRAY, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(15,221, GRAY, 'f', MAP, "Bondarenko Katya", "Vika");
	SetHomoSapiens(43,210, GRAY, 'm', MAP, "Bondarenko Katya", "Vlad");
	SetHomoSapiens(38,224, GRAY, 'f', MAP, "Bondarenko Katya", "Alena");
	SetHomoSapiens(30,234, GRAY, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(17,232, GRAY, 'm', MAP, "Bondarenko Katya", "Vasya");
	SetHomoSapiens(31,238, GRAY, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(44,233, GRAY, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(53,212, GRAY, 'f', MAP, "Bondarenko Katya", "Nastya");
	SetHomoSapiens(53,222, GRAY, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(88,208, GRAY, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(96,220, GRAY, 'f', MAP, "Bondarenko Katya", "Lena");
	SetHomoSapiens(108,207, GRAY, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(121,211, GRAY, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(132,223, GRAY, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(152,225, MUSTARD, 'f', MAP, "Bondarenko Katya", "Julia");
	SetHomoSapiens(146,228, MUSTARD, 'f', MAP, "Bondarenko Katya", "Vika");
	SetHomoSapiens(164,232, AZURE, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(147,242, MUSTARD, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(163,210, AZURE, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(161,213, AZURE, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(164,217, AZURE, 'f', MAP, "Bondarenko Katya", "Alena");
	SetHomoSapiens(164,218, AZURE, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(55,229, GREEN, 'f', MAP, "Bondarenko Katya", "Olya");
	SetHomoSapiens(55,233, GREEN, 'f', MAP, "Bondarenko Katya", "Ira");
	SetHomoSapiens(54,233, GREEN, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(59,239, GREEN, 'f', MAP, "Bondarenko Katya", "Lena");
	SetHomoSapiens(65,242, GREEN, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(65,238, GREEN, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(66,238, GREEN, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(64,233, GREEN, 'f', MAP, "Bondarenko Katya", "Alena");
	SetHomoSapiens(74,233, GREEN, 'f', MAP, "Bondarenko Katya", "Julia");
	SetHomoSapiens(77,229, GREEN, 'm', MAP, "Bondarenko Katya", "Vlad");
	SetHomoSapiens(93,244, GREEN, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(103,238, GREEN, 'm', MAP, "Bondarenko Katya", "Lesha");
	SetHomoSapiens(102,227, GREEN, 'f', MAP, "Bondarenko Katya", "Nastya");
	SetHomoSapiens(107,229, GREEN, 'f', MAP, "Bondarenko Katya", "Lena");
	SetHomoSapiens(112,233, GREEN, 'm', MAP, "Bondarenko Katya", "Sasha");
	SetHomoSapiens(113,233, GREEN, 'm', MAP, "Bondarenko Katya", "Andrey");
	SetHomoSapiens(111,238, GREEN, 'm', MAP, "Bondarenko Katya", "Vasya");
	SetHomoSapiens(117,242, GREEN, 'm', MAP, "Bondarenko Katya", "Petya");
	SetHomoSapiens(123,238, GREEN, 'f', MAP, "Bondarenko Katya", "Katya");
	SetHomoSapiens(132,238, GREEN, 'm', MAP, "Bondarenko Katya", "Fedya");
	SetHomoSapiens(131,233, GREEN, 'f', MAP, "Bondarenko Katya", "Vika");
	SetHomoSapiens(132,233, GREEN, 'm', MAP, "Bondarenko Katya", "Dima");
	SetHomoSapiens(138,234, GREEN, 'f', MAP, "Bondarenko Katya", "Nastya");
	SetHomoSapiens(138,244, GREEN, 'm', MAP, "Bondarenko Katya", "Andrey");
}

void SetCar()
{
	SetCar(18,149, WHITE, MAP, "Bondarenko Katya", "Car");
	SetCar(21,155, RED, MAP, "Bondarenko Katya", "Car");
	SetCar(21,157, GREEN, MAP, "Bondarenko Katya", "Car");
	SetCar(18,161, MUSTARD, MAP, "Bondarenko Katya", "Car");
	SetCar(18,163, AZURE, MAP, "Bondarenko Katya", "Car");
	SetCar(21,167, YELLOW, MAP, "Bondarenko Katya", "Car");
	SetCar(21,169, WHITE, MAP, "Bondarenko Katya", "Car");
	SetCar(21,171, RED, MAP, "Bondarenko Katya", "Car");
	SetCar(18,151, YELLOW, MAP, "Bondarenko Katya", "Car");
	SetCar(18,173, WHITE, MAP, "Bondarenko Katya", "Car");
	SetCar(21,165, RED, MAP, "Bondarenko Katya", "Car");
	SetCar(126,150, WHITE, MAP, "Bondarenko Katya", "Car");
	SetCar(126,152, RED, MAP, "Bondarenko Katya", "Car");
	SetCar(131,154, WHITE, MAP, "Bondarenko Katya", "Car");
	SetCar(131,156, RED, MAP, "Bondarenko Katya", "Car");
	SetCar(131,158, GREEN, MAP, "Bondarenko Katya", "Car");
	SetCar(127,162, MUSTARD, MAP, "Bondarenko Katya", "Car");
	SetCar(126,164, AZURE, MAP, "Bondarenko Katya", "Car");
	SetCar(131,166, YELLOW, MAP, "Bondarenko Katya", "Car");
	SetCar(126,168, WHITE, MAP, "Bondarenko Katya", "Car");
	SetCar(126,170, RED, MAP, "Bondarenko Katya", "Car");
	SetCar(126,172, YELLOW, MAP, "Bondarenko Katya", "Car");
	SetCar(131,174, GREEN, MAP, "Bondarenko Katya", "Car");
	SetCar(131,176, RED, MAP, "Bondarenko Katya", "Car");
	SetCar(126,180, WHITE, MAP, "Bondarenko Katya", "Car");
	SetCar(126,184, RED, MAP, "Bondarenko Katya", "Car");
	SetCar(131,186, YELLOW, MAP, "Bondarenko Katya", "Car");
	SetCar(131,188, GREEN, MAP, "Bondarenko Katya", "Car");
	SetCar(126,192, RED, MAP, "Bondarenko Katya", "Car");

	SetCar( 70, 31, RED, MAP, "Pulova Julia", "Car");
	SetCar( 70, 33, LIGHT_BLUE, MAP, "Pulova Julia", "Car");
	SetCar( 76, 35, YELLOW, MAP, "Pulova Julia", "Car");
	SetCar( 70, 35, WHITE, MAP, "Pulova Julia", "Car");
	SetCar( 76, 37, RED, MAP, "Pulova Julia", "Car");
	SetCar( 70, 39, PURPLE, MAP, "Pulova Julia", "Car");
	SetCar( 76, 43, GREEN, MAP, "Pulova Julia", "Car");
}

void Metro()
{
	SetMetro(31, 12, MAP, "Julia Pulova", "\"North\" Station");
	SetMetro(132, 8, MAP, "Julia Pulova", "\"East\" Station");
	SetMetro(104, 60, MAP, "Julia Pulova", "\"Central\" Station");
	SetMetro(141, 93, MAP, "Julia Pulova", "\"Sea Breath\" Station");
	SetMetro(10, 120, MAP, "Julia Pulova", "\"Tairovo\" Station");
	SetMetro(131, 143, MAP, "Julia Pulova", "\"Fontan\" Station");
	SetMetro(84, 158, MAP, "Julia Pulova", "\"Cheryomushki\" Station");
	SetMetro(20, 235, MAP, "Julia Pulova", "\"South2\" Station");
	SetMetro(135, 238, MAP, "Julia Pulova", "\"South\" Station");
}

void SetUniver()
{
	//SetUniversity(68,29);
}

void SetStore()
{
	//SetStore(7,29);
}

//Nikolay
void ShopCenter()
{
	Parking(17,146,8,31, MAP, "Nikolai Shvec", "Parking");
	Parking(125,147,10,51, MAP, "Nikolai Shvec", "Parking");
	
	SetHouse(6,142,4,18,YELLOW, MAP, "Nikolai Shvec", "Apartment house, 9 floors");
	SetHouse(6,146,31,10,YELLOW, MAP, "Nikolai Shvec", "Apartment house, 9 floors");
	SetHouse(6,177,4,18,YELLOW, MAP, "Nikolai Shvec", "Apartment house, 9 floors");
	SetHouse(6,181,15,4,YELLOW, MAP, "Nikolai Shvec", "Apartment house, 9 floors");
	SetHouse(20,181,15,4,YELLOW, MAP, "Nikolai Shvec", "Apartment house, 9 floors");
	SetHouse(6,197,4,18,YELLOW, MAP, "Nikolai Shvec", "Apartment house, 9 floors");
	
	for(int i=0;i<15;++i)
	{
		SetTree(11,(181+i),GRAY, MAP, "Nikolai Shvec", "Mountain ash");
	}
	for(int i=0;i<15;++i)
	{
		SetTree(18,(181+i),GRAY, MAP, "Nikolai Shvec", "Maple");
	}
	
	SetHouse(32,142,5,25,DARK_RED, MAP, "Nikolai Shvec", "Apartment house, 12 floors");
	SetHouse(32,147,10,5,DARK_RED, MAP, "Nikolai Shvec", "Apartment house, 12 floors");
	SetHouse(52,147,10,5,DARK_RED, MAP, "Nikolai Shvec", "Apartment house, 12 floors");
	SetHouse(32,157,5,25,DARK_RED, MAP, "Nikolai Shvec", "Apartment house, 12 floors");
	SetHouse(60,142,20,7,DARK_RED, MAP, "Nikolai Shvec", "Apartment house, 12 floors");
	
	for(int i=0;i<18;++i)
	{
		SetTree(67,(143+i),GRAY, MAP, "Shwes Nikolay", "Mountain ash");
	}
	
	SetHouse(76,142,4,58,BLUE, MAP, "Nikolai Shvec", "Apartment house, 10 floors");
	SetHouse(76,147,15,7,BLUE, MAP, "Nikolai Shvec", "Apartment house, 10 floors");
	SetHouse(89,147,15,7,BLUE, MAP, "Nikolai Shvec", "Apartment house, 10 floors");
	SetHouse(100,147,5,24,BLUE, MAP, "Nikolai Shvec", "Apartment house, 10 floors");
	SetHouse(100,157,5,24,BLUE, MAP, "Nikolai Shvec", "Apartment house, 10 floors");
	SetHouse(117,162,39,7,BLUE, MAP, "Nikolai Shvec", "Apartment house, 10 floors");

	//flowersbed
	for (int i=0; i < 24; ++i)
	{
		for (int j=0; j < 3; ++j)
		{
			SetFlower(100+i, 153+j, GRAY, MAP, "Nikolai Shvec", "Flowerbed");
		}
	}

	for (int i=0; i < 13; ++i)
	{
		for (int j=0; j < 8; ++j)
		{
		   SetFlower(38+i, 148+j, GRAY, MAP, "Nikolai Shvec", "Flowerbed");
		}
	}
}

// Gorbatiuk Lena  

void Buharest()
{
	SetHouse (60, 65, 3, 4, WHITE, MAP, "Gorbatiuk Lena", "First corner house. Administration building of NBU"); // угловые квадратные домики
	SetHouse (85, 65, 3, 4, WHITE, MAP, "Gorbatiuk Lena", "Second corner house. Administration building of NBU");
	SetHouse (85, 52, 3, 4, WHITE, MAP, "Gorbatiuk Lena", "Third corner house. Administration building of NBU");
	SetHouse (60, 52, 3, 4, WHITE, MAP, "Gorbatiuk Lena", "Forth corner house. Administration building of NBU");

	SetHouse (65, 55, 10, 4, WHITE, MAP, "Gorbatiuk Lena", "Administration building of NBU"); // прямоугольные вертикальные дома соеденяющие угловые квадраты
	SetHouse (82, 55, 10, 4, WHITE, MAP, "Gorbatiuk Lena", "Administration building of NBU");

	SetHouse (73, 63, 5, 5, WHITE, MAP, "Gorbatiuk Lena", "Main entrance"); // парадный вход

	SetHouse (70, 55, 7, 11, YELLOW, MAP, "Gorbatiuk Lena", "Head office of NBU"); // центральное здание
	
	 for (int i=0; i < 7; ++i)
	{
		SetTree (64+1+i, 66, GRAY, MAP, "Gorbatiuk Lena", "Firtree");
		SetTree (64+1+i, 68, GRAY, MAP, "Gorbatiuk Lena", "Silver fir");

		SetTree (77+1+i, 66, GRAY, MAP, "Gorbatiuk Lena", "Firtree");
		SetTree (77+1+i, 68, GRAY, MAP, "Gorbatiuk Lena", "Silver fir");
	}

	for (int i=0; i < 10; ++i)
	{
		SetFlower (5+1+i, 65, GRAY, MAP, "Gorbatiuk Lena", "Flowerbed");
		SetFlower (10+1+i, 66, GRAY, MAP, "Gorbatiuk Lena", "Flowerbed");
		SetFlower (15+1+i, 67, GRAY, MAP, "Gorbatiuk Lena", "Flowerbed");
		SetFlower (20+1+i, 68, GRAY, MAP, "Gorbatiuk Lena", "Flowerbed");

		SetTree (20+1+i, 65, GRAY, MAP, "Gorbatiuk Lena", "Oak");
		SetTree (25+1+i, 66, GRAY, MAP, "Gorbatiuk Lena", "Oak");
		SetTree (30+1+i, 67, GRAY, MAP, "Gorbatiuk Lena", "Oak");
		SetTree (35+1+i, 68, GRAY, MAP, "Gorbatiuk Lena", "Oak");
	}	

	// Second quartal
	SetHouse (5, 52, 10, 3, MUSTARD, MAP, "Gorbatiuk Lena", "Computer Akademy STEP. First building"); // Ш
	SetHouse (11, 52, 10, 3, MUSTARD, MAP, "Gorbatiuk Lena", "Computer Akademy STEP. First building");
	SetHouse (16, 52, 10, 3, MUSTARD, MAP, "Gorbatiuk Lena", "Computer Akademy STEP. First building");

	SetHouse (8, 60, 2, 3, MUSTARD, MAP, "Gorbatiuk Lena", "Computer Akademy STEP. First building");
	SetHouse (13, 60, 2, 3, MUSTARD, MAP, "Gorbatiuk Lena", "Computer Akademy STEP. First building");

	SetHouse (25, 52, 3, 7, BLUE, MAP, "Gorbatiuk Lena", "Computer Akademy STEP. Second building"); //A
	SetHouse (26, 57, 3, 5, BLUE, MAP, "Gorbatiuk Lena", "Computer Akademy STEP. Second building"); 

	SetHouse (22, 52, 10, 3, BLUE, MAP, "Gorbatiuk Lena", "Computer Akademy STEP. Second building"); 
	SetHouse (32, 52, 10, 3, BLUE, MAP, "Gorbatiuk Lena", "Computer Akademy STEP. Second building"); 

	SetHouse (38, 52, 10, 3, DARK_RED, MAP, "Gorbatiuk Lena", "Computer Akademy STEP. Third building"); //Г
	SetHouse (42, 52, 3, 7, DARK_RED, MAP, "Gorbatiuk Lena", "Computer Akademy STEP. Third building"); 

	// First part of Park
	SetHouse (15, 80, 20, 10, LIGHT_BLUE, MAP, "Gorbatiuk Lena", "Sweemingpool"); 
	SetHouse (24, 90, 2, 3, WHITE, MAP, "Gorbatiuk Lena", "Sweemingpool's steps"); 

	for (int i=0; i < 40; ++i)
	{

		SetTree (4+1+i, 74, GREEN, MAP, "Gorbatiuk Lena", "Birches");
		SetTree (4+1+i, 76, GREEN, MAP, "Gorbatiuk Lena", "Birches");
		SetTree (4+1+i, 78, GREEN, MAP, "Gorbatiuk Lena", "Birches");

		SetTree (4+1+i, 110, GREEN, MAP, "Gorbatiuk Lena", "Birches");
		SetTree (4+1+i, 112, GREEN, MAP, "Gorbatiuk Lena", "Birches");
		SetTree (4+1+i, 114, GREEN, MAP, "Gorbatiuk Lena", "Birches");
	}


	for (int i=0; i < 36; ++i)
	{
		SetTree (6, 79+1+i, GREEN, MAP, "Gorbatiuk Lena", "Birches");
		SetTree (8, 79+1+i, GREEN, MAP, "Gorbatiuk Lena", "Birches");
		SetTree (10, 79+1+i, GREEN, MAP, "Gorbatiuk Lena", "Birches");
	}

	for (int i=0; i < 15; ++i)
	{
		SetTree (15, 100+1+i, GREEN, MAP, "Gorbatiuk Lena", "Park's Trees");
		SetTree (17, 100+1+i, GREEN, MAP, "Gorbatiuk Lena", "Park's Trees");
		SetTree (19, 100+1+i, GREEN, MAP, "Gorbatiuk Lena", "Park's Trees");

		SetTree (25, 100+1+i, GREEN, MAP, "Gorbatiuk Lena", "Park's Trees");
		SetTree (27, 100+1+i, GREEN, MAP, "Gorbatiuk Lena", "Park's Trees");
		SetTree (29, 100+1+i, GREEN, MAP, "Gorbatiuk Lena", "Park's Trees");

		SetTree (35, 100+1+i, GREEN, MAP, "Gorbatiuk Lena", "Park's Trees");
		SetTree (37, 100+1+i, GREEN, MAP, "Gorbatiuk Lena", "Park's Trees");
		SetTree (39, 100+1+i, GREEN, MAP, "Gorbatiuk Lena", "Park's Trees");
	}

	// Razdevalki
	SetHouse (11, 102, 8, 4, BLUE, MAP, "Gorbatiuk Lena", "Dressing room for men");
	SetHouse (21, 102, 8, 4, RED, MAP, "Gorbatiuk Lena", "Dressing room for women");
	SetHouse (31, 102, 8, 4, YELLOW, MAP, "Gorbatiuk Lena", "Sweemingpool Administration building");

	// Stadion
	SetHouse (70, 80, 30, 25, WHITE, MAP, "Gorbatiuk Lena", "Stadium");
	SetHouse (75, 85, 20, 15, DARK_GREEN, MAP, "Gorbatiuk Lena", "Stadium's field");

	for (int i=0; i < 3; ++i)
	{
		SetFlower (65+1+i, 90, GREEN, MAP, "Gorbatiuk Lena", "Chrysanthemum");
		SetFlower (65+1+i, 91, GREEN, MAP, "Gorbatiuk Lena", "Chrysanthemum");
		SetFlower (65+1+i, 92, GREEN, MAP, "Gorbatiuk Lena", "Chrysanthemum");

		SetFlower (55+1+i, 90, GREEN, MAP, "Gorbatiuk Lena", "Narcissuses");
		SetFlower (55+1+i, 91, GREEN, MAP, "Gorbatiuk Lena", "Narcissuses");
		SetFlower (55+1+i, 92, GREEN, MAP, "Gorbatiuk Lena", "Narcissuses");

		SetFlower (55+1+i, 95, GREEN, MAP, "Gorbatiuk Lena", "Peonies");
		SetFlower (55+1+i, 96, GREEN, MAP, "Gorbatiuk Lena", "Peonies");
		SetFlower (55+1+i, 97, GREEN, MAP, "Gorbatiuk Lena", "Peonies");

		SetFlower (65+1+i, 95, GREEN, MAP, "Gorbatiuk Lena", "Chamomiles");
		SetFlower (65+1+i, 96, GREEN, MAP, "Gorbatiuk Lena", "Chamomiles");
		SetFlower (65+1+i, 97, GREEN, MAP, "Gorbatiuk Lena", "Chamomiles");
	}
	// Skameika
    SetBench (55, 88, GREEN, MAP, "Gorbatiuk Lena", "Bench");
	SetBench (65, 88, GREEN, MAP, "Gorbatiuk Lena", "Bench");
	SetBench (55, 99, GREEN, MAP, "Gorbatiuk Lena", "Bench");
	SetBench (65, 99, GREEN, MAP, "Gorbatiuk Lena", "Bank von Gluck");

	// Besedka
	SetHouse (125, 57, 5, 7, PINK, MAP, "Gorbatiuk Lena", "Summer house"); 

	SetBench (100, 53, GREEN, MAP, "Gorbatiuk Lena", "Bench");
	SetBench (110, 53, GREEN, MAP, "Gorbatiuk Lena", "Bench");
	SetBench (120, 53, GREEN, MAP, "Gorbatiuk Lena", "Bench");
	SetBench (128, 53, GREEN, MAP, "Gorbatiuk Lena", "Bench");

	SetBench (100, 66, GREEN, MAP, "Gorbatiuk Lena", "Bench");
	SetBench (110, 66, GREEN, MAP, "Gorbatiuk Lena", "Bench");
	SetBench (120, 66, GREEN, MAP, "Gorbatiuk Lena", "Bench");
	SetBench (128, 66, GREEN, MAP, "Gorbatiuk Lena", "Bench");

	SetBench (100, 72, GREEN, MAP, "Gorbatiuk Lena", "Bench");
	SetBench (110, 72, GREEN, MAP, "Gorbatiuk Lena", "Bench");
	SetBench (120, 72, GREEN, MAP, "Gorbatiuk Lena", "Bench");
	SetBench (128, 72, GREEN, MAP, "Gorbatiuk Lena", "Bench");

	for (int i=0; i<5; i++)
	{
		SetFlower (105+1+i, 69, GREEN, MAP, "Gorbatiuk Lena", "Roses");
		SetFlower (115+1+i, 69, GREEN, MAP, "Gorbatiuk Lena", "Roses");
		SetFlower (125+1+i, 69, GREEN, MAP, "Gorbatiuk Lena", "Roses");
	}

	for (int i=0; i<33; i++)
	{
		SetFlower (100+1+i, 55, GREEN, MAP, "Gorbatiuk Lena", "Lilies");
		SetFlower (100+1+i, 63, GREEN, MAP, "Gorbatiuk Lena", "Lilies");

	}

	for (int i=0; i<77; i++)
	{
		SetTree (55+1+i, 75, GREEN, MAP, "Gorbatiuk Lena", "Birches");
		SetFlower (55+1+i, 77, GREEN, MAP, "Gorbatiuk Lena", "Chamomiles");

		SetFlower (55+1+i, 112, GREEN, MAP, "Gorbatiuk Lena", "Chamomiles");
		SetTree (55+1+i, 114, GREEN, MAP, "Gorbatiuk Lena", "Birches");
	}

	for (int i=0; i<8; ++i)
	{
		for (int j=0; j < 30; ++j)
		{
			SetFlower (100+i, 80+j, GREEN, MAP, "Gorbatiuk Lena", "Alley of tulips");
		}
		
	}

	SetHouse (115, 79, 5, 8, YELLOW, MAP, "Gorbatiuk Lena", "Museum of nature"); 
	SetHouse (115, 85, 5, 8, RED, MAP, "Gorbatiuk Lena", "Art Galary");
	SetHouse (115, 91, 5, 8, BLUE, MAP, "Gorbatiuk Lena", "Planetarium");
	SetHouse (115, 97, 5, 8, PURPLE, MAP, "Gorbatiuk Lena", "Historical musium");
	SetHouse (115, 103, 5, 8, AZURE, MAP, "Gorbatiuk Lena", "Sea's museum");

}

void Interface()
{
	system ("cls");
	system("title Город v 1.3.0");
	cout << "\t\t\t\t\t\t\t\tCITY ver 1.3.0" << endl;
	int maxX = 139;
	int maxY = 42;
	for (int i = 0; i < maxY; i++)
	{

		for (int j = 0; j < maxX; j++)
		{
			if ((i == 0) && (j == 0)) cout << (char) 201;
			else if ((i == 0) && (j == maxX-1)) cout << (char) 187 << endl;
			else if ((i == maxY-1) && (j == 0)) cout << (char) 200;
			else if ((i == maxY-1) && (j == maxX-1)) cout << (char) 188 << endl;
			else if ((i == 0) || (i == maxY-1)) cout << (char) 205;
			else if (j == 0) cout << (char) 186;
			else if (j == maxX-1) cout << (char) 186 << endl;
			else cout << " ";
			//else if ((i == 0) || (i == 77) && (j == 0) || (j == 77)) cout << " ";
		}

	}
	cout << "Use arrows to move the cursor, 8, 4, 6, 2 - to move map, TAB - to change view between city and subway, Enter - to show info, Esc - to exit" << endl;
	
	cout << endl <<"            INFOBOX" << endl;
	cout << "Description:\n\nAuthor:\n";
}

DWORD WINAPI trafficLightShow (void*p)
{
	while (true)
	{
		for (int i = 0; i < trafLightCount; i++) trL[i].show (MAP);
		Sleep(1000);
	}
	return 0;
}

DWORD WINAPI People (void*p)
{
	while (true)
	{
		for (int i = 0; i < peopleCount; i++) people[i].move (MAP);
		Sleep (200);
	}
	return 0;
}

DWORD WINAPI Cars (void*p)
{
	while (true)
	{
		for (int i = 0; i < carCount; i++) cars[i].move (MAP);
		Sleep (100);
	}
	return 0;
}


void main()
{
	system("mode con cols=140 lines=75");

	CONSOLE_CURSOR_INFO cci;
	cci.bVisible = false;
	cci.dwSize = 100;
	SetConsoleCursorInfo(h,&cci);

	//setlocale (LC_CTYPE, "UNICODE");
	srand (time (NULL));

	MAP = new mapElt* [WIDTH];
	for (int i = 0; i < WIDTH; i++)
		MAP[i] = new mapElt [HEIGHT];

	METRO = new mapElt* [WIDTH];
	for (int i = 0; i < WIDTH; i++)
		METRO[i] = new mapElt [HEIGHT];

	//=======================================СВЕТОФОРЫ==============================


	trL = new traffic [trafLightCount];
	people = new human [peopleCount];
	cars = new car [carCount];
	//=======================================Рисуем вместе ;)=======================	


	Streets ();
	Sea ();
	Bank ();
	Beach ();
	Roads ();
	Park ();
	Kvrt1 ();
	trafficLights (trL);
	
	//Julia's
	Yacht();
	Ship();
	RailWay();
	Zebra();
	BeachHouse();
	PublicBeach();
	Tree();
	SetStore();
	SetUniver();
	SetHomoSapiens();

	//LENA'S
	Buharest();

	//Nikolay
	ShopCenter();
	Metro();

	//Katya
	SetCar();

	Interface ();
	for (int i = 0; i < peopleCount; i++)
	{
		people[i].set (MAP);
		people[i].show (MAP);
	}
	
	for (int i = 0; i < carCount; i++)
	{
		cars[i].set (MAP);
		cars[i].show (MAP);
	}
	_city city (MAP, METRO, 137, 40, WIDTH, HEIGHT, 1, 2, false);

	city.show ();
	//////////////////////////////////////////////////////////////////////
	GetConsoleScreenBufferInfo(h, &csbiInfo);

	// Create the mutexes and reset thread count.
	hScreenMutex = CreateMutex( NULL, FALSE, NULL );  // Cleared 
	hRunMutex = CreateMutex( NULL, TRUE, NULL );      // Set 

	CreateThread(0,0,trafficLightShow,0,0,0);
	CreateThread(0,0,People,0,0,0);
	//CreateThread(0,0,Cars,0,0,0);

	///////////////////////////////////////////////////////////////////////
	while (true)               
	{
		if (kbhit ())
		{
			int i = getch();
			switch (i)
			{
			case LEFT: city.moveCur (LEFT); break;
			case RIGHT: city.moveCur (RIGHT); break;
			case UP: city.moveCur (UP); break;
			case DOWN: city.moveCur (DOWN); break;
			case 9: city.swtch (); break;
			case 13: city.showInfo (); break;
			case 50: city.moveMap (DOWN, true); break;
			case 52: city.moveMap (RIGHT, true); break;
			case 54: city.moveMap (LEFT, true); break;
			case 56: city.moveMap (UP, true); break;
			case 27: exit (0); break;
			case 55: city.moveMap (00, true); break;
			case 57: city.moveMap (10, true); break;
			case 49: city.moveMap (01, true); break;
			case 51: city.moveMap (11, true); break;
			}
		}
		if (train_thread_status)
			_beginthread( TrainThread, 0, &ThreadNr );
		Sleep(15);
		city.show ();
	}
}